Sparkline

A tiny inline trend chart.

API reference

Inputs

PropTypeDefaultDescription
datareadonly number[][]Numeric series to plot; needs at least two points to render.
widthnumber100SVG width in pixels.
heightnumber28SVG height in pixels.
areabooleantrueWhether to draw the translucent area fill under the line.
strokeWidthnumber1.5Line stroke width in pixels (also used as edge padding).
ariaLabelstring'Trend'Accessible label for the sparkline's `aria-label`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.