Observable PlotSpecialized

Sparkline

Compact inline trend visualization for embedding in text or tables.

Preview placeholder

sparkline-v1

Installation

Terminal
npx @ontopic/viz add plot/generic/sparkline-v1

Props

PropTypeDescription
datanumber[]Trend values
widthnumberSparkline width
heightnumberSparkline height

See full TypeScript interface on GitHub for all props.

Usage Example

TypeScript
import { Sparkline } from '@/viz/components/plot/generic/sparkline-v1';