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.
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.
- namerequisstring
- Display name shown in the legend and used as the screen-reader description for the series.
- datarequisArray<number> | Array<IChartSeriesPoint>
- Series data. Numbers are aligned to categories[index]. Objects carry their own X coordinate — required for scatter and irregular sampling.
- colorTIntent | 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.
- visiblebooleantrue
- Whether the series is currently visible. Driven from legend-click → series-toggle. Default true.
- typeTChartType
- Override the chart-level type for this series only — enables mix charts (a column chart with a line overlay).
- yAxis0 | 10
- 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