Skip to content

SparkLine

stable

Inline SVG micro-chart for trend visualization in table cells

import { SparkLine } from "@nodus/design-system/finance"
Loading demo…

Props

datarequired
Type number[]Default

Array of numeric values to plot

width
Type numberDefault 80

Width of the SVG in pixels

height
Type numberDefault 24

Height of the SVG in pixels

strokeWidth
Type numberDefault 1.5

Stroke width in pixels

severityColored
Type booleanDefault

Color the line by overall change severity

breakpoints
Type ThresholdBreakpointsDefault

Custom severity breakpoints when severityColored is true

label
Type stringDefault

Accessible label for the chart

Metadatasemanticoutcome
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?