Evidence provides four types of annotations to add context to charts, such as highlighting specific points, areas, or drawing lines. These can be defined using inline values or by providing a dataset.
Available annotation types:
ReferenceLine: Draws a line (e.g., sales target, launch dates, or linear regression).ReferenceArea: Highlights a specific area (e.g., holiday shopping periods or metric control ranges).ReferencePoint: Highlights specific points (e.g., anomalies or points of interest).Callout: Draws attention to data with text (e.g., explaining a trend).
<LineChart data={orders_by_month} x=month y=sales yFmt=usd0>
<ReferenceLine y=7500 label="Reference Line" hideValue labelPosition="aboveStart" color=positive/>
<ReferenceArea xMin='2020-03-14' xMax='2020-08-15' label="Reference Area" color=warning/>
<ReferencePoint x="2019-07-01" y=6590 label="Reference Point" labelPosition=bottom color=negative/>
<Callout x="2021-05-01" y=11012 labelPosition=bottom labelWidth=fit>
Callout
Data trending up here
</Callout>
</LineChart>