import { Sparkline } from '@wick-charts/react'; <Sparkline data={data} />A self-contained miniature chart for tables, KPIs, and dashboards. Renders without any of the chrome (<YAxis>, <TimeAxis>, etc.) and includes a lightweight value badge.
A self-contained miniature chart for tables, KPIs, and dashboards. Renders without any of the chrome (<YAxis>, <TimeAxis>, etc.) and includes a lightweight value badge.
Data points plotted by the sparkline. A flat TimePoint[] — the sparkline only ever shows one tiny line/bar.
Unix milliseconds.
Y-axis value at this point. Drives the line height / bar height.
Streaming-window mode: viewport is fixed at capacity bars wide and stays anchored at the time of the first data point until the window fills. New ticks flow into the empty right side instead of expanding the visible range. Pass at least one seed point in data so the initial window has a time anchor.
Visual theme. Drives series colour, background gradient, and the change-direction colours used in the value block.
'line' (default) or 'bar'
Where to show the value label
Custom format for the value
Label text above the value
Sublabel text below the value (defaults to the change %)
Line/bar color override (defaults to theme)
Secondary color for negative bars
Show area fill under line
Chart width (default: 140)
Overall height (default: 48)
Stroke width in CSS pixels (default: 1.5)
Show chart background gradient (default: true)
Container style override