IChartSeries

interface
Data Visualisation

A single data series rendered by OrigamChart. The data field accepts either a flat number array (values aligned to categories by index) or an object array of IChartSeriesPoint for explicit x/y coordinates — required for scatter and sparse data.

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.

name
requis
string
Display name shown in the legend and used as the screen-reader description for the series.
data
requis
Array<number> | Array<IChartSeriesPoint>
Series data. Numbers are aligned to categories[index]. Objects carry their own X coordinate — required for scatter and irregular sampling.
color
TIntent | string
Intent token (primary, success, …) or raw CSS colour (#ff0080, rgb(…)). When absent the chart pulls the next colour from colorScheme cycling by series index.
visible
boolean
true
Whether the series is currently visible. Driven from legend-click → series-toggle. Default true.
type
TChartType
Override the chart-level type for this series only — enables mix charts (a column chart with a line overlay).
yAxis
0 | 1
0
Which Y axis this series is mapped to. 0 = left primary axis, 1 = right secondary axis. Only meaningful for cartesian family charts.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Defining a line series and a column series on a mix chart

typescript