Tesserae

Sparkline

Description

A compact inline trend chart

Sparkline renders a compact SVG area chart designed to be embedded alongside metric values, table cells, or dashboard cards. It conveys the shape of a trend at a glance without axes, labels, or interactive controls.

The chart accepts a data array of doubles and optional width, height, and color parameters, making it easy to match any layout or brand color.

Samples

Upward Trend

Downward Trend

Flat / Stable

Volatile / Random

Primary Color (default)

Larger Chart

Dashboard Card with Metric and Sparkline

Sparklines are most useful when paired with a headline metric. The cards below combine a primary number, the period-over-period delta, and a sparkline for shape — each tile uses a different palette to highlight the trend direction.

Dynamic Sparkline (Refresh on Click)

Sparkline re-renders whenever it is added to a container, so you can drive interactivity by swapping the chart for a new instance on a user action. The button below replaces the current chart with a freshly-randomised data set.

See also

© 2026 Tesserae. All rights reserved.