import { SparkLine } from "@nodus/design-system/finance"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
datareq | number[] | — | Array of numeric values to plot |
width | number | 80 | Width of the SVG in pixels |
height | number | 24 | Height of the SVG in pixels |
strokeWidth | number | 1.5 | Stroke width in pixels |
severityColored | boolean | — | Color the line by overall change severity |
breakpoints | ThresholdBreakpoints | — | Custom severity breakpoints when severityColored is true |
label | string | — | Accessible label for the chart |
datarequiredType
number[]Default —Array of numeric values to plot
widthType
numberDefault 80Width of the SVG in pixels
heightType
numberDefault 24Height of the SVG in pixels
strokeWidthType
numberDefault 1.5Stroke width in pixels
severityColoredType
booleanDefault —Color the line by overall change severity
breakpointsType
ThresholdBreakpointsDefault —Custom severity breakpoints when severityColored is true
labelType
stringDefault —Accessible label for the chart
MobileWorks As-Is
Spark line scales with container. Works at any viewport.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?