IChartPlotLine

interface
Chart

A single threshold line drawn at a fixed axis value, either horizontally (Y-axis) or vertically (X-axis). Applicable to cartesian-family charts only — not for polar, radar or gauge.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

axis
'x' | 'y'
Axis the line is perpendicular to. "y" draws a horizontal line at a Y value; "x" draws a vertical line at an X value. Default "y".
value
requis
number | string
Position on the axis in axis units. String when axis="x" and categories are strings.
color
TIntent | string
Stroke colour. Accepts a TIntent token name or any CSS colour string. Default resolves to the danger intent bg token.
width
number
Stroke width in SVG user units. Default 1.5.
dash
'solid' | 'dashed' | 'dotted'
Dash pattern of the line. Default "dashed".
label
string
Optional label placed at the end of the line.
labelAlign
'left' | 'right'
Horizontal alignment of the label for Y-axis lines. "right" (default) places the label at the right edge; "left" at the left edge.
layer
'below' | 'above'
Z-order relative to chart data. "below" — drawn behind series; "above" (default) — drawn on top of data so the line remains visible.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Drawing a danger threshold line

vue