IChartSparklineProps
Props for OrigamChartSparkline — the tiny inline-chart family. Sparklines are compact data visualisations for embedding in table cells, KPI cards and dashboards. They have no axes, no legend, no grid by default. Extends IChartBaseProps omitting series, showLegend, legendPosition and colorScheme.
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.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
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.
- seriesrequisArray<IChartSeries>
- Single data series. Data must be Array<number> — only one series is rendered.
- typeTChartSparklineKind'line'
- Rendering mode. 'line' — polyline connecting data points. 'area' — line with a translucent fill below. 'column' — vertical bars. 'bar' — horizontal bars.
- colorTIntent | string'primary'
- Stroke / fill intent or raw CSS colour applied uniformly to the sparkline (no palette cycling).
- lineWidthnumber1.5
- Stroke width for line and area modes in SVG pixels.
- showMarkersbooleanfalse
- Render a filled circle marker at every data point. Only meaningful for line and area modes.
- showMinbooleanfalse
- Highlight the minimum value point in red.
- showMaxbooleanfalse
- Highlight the maximum value point in green.
- showLastbooleantrue
- Highlight the last data point in the primary colour.
- markerSizenumber2.5
- Radius of highlighted marker circles in SVG pixels.
- widthnumber | string120
- CSS width of the sparkline container. Accepts a number (px) or a CSS string (100%, 8rem).
- heightnumber | string30
- CSS height of the sparkline container. Accepts a number (px) or a CSS string (100%, 2rem).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Embedding a sparkline in a KPI card