The annotations plugin draws visual markers on top of (or behind) a chart to call out important values. You can annotate a single threshold value with a line, mark a range with a shaded area, or draw a line between arbitrary data points. Each annotation accepts a color, an optional label, and aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
position setting that controls whether it appears in front of or behind the chart elements.
Usage
Settings
An array of annotation descriptors. Each object in the array defines one annotation. See the annotation item fields below.
A map of dimension names to formatter functions or
{ label, format } objects. When a label template uses {{value}}, the formatter for that dimension is applied to produce the displayed string.Annotation item fields
The data field (or pair of fields) that the annotation targets.
- A single string: targets one axis dimension, producing a vertical or horizontal line or area.
- A two-element array
[xField, yField]: targets both axes, producing a diagonal line between points.
The value or values to annotate.
- A single value: draws a line at that position on the axis.
- A two-element array
[start, end]: draws a shaded area between those values (whendimis a string). - An array of
[x, y]pairs: draws a line through those coordinate points (whendimis a two-element array).
A label displayed on the annotation. You can embed
{{value}} to interpolate the annotated value using the dimension’s formatter.When the annotation spans a range, text labels the start point. To label both endpoints independently, pass an object:CSS color string for the annotation line, area, or label. Accepts hex codes, named colors, and any value accepted by the browser’s color parser.
Controls the Z-order of the annotation relative to the chart’s data elements. Use
'front' to draw the annotation on top of bars and lines, or 'back' (default) to draw it behind them.