Components

BaseSparkline

A small trend without axes drawn with ECharts, with the previous period, an end point and scrubbing.

components/ui/chart/BaseSparkline.vue
View in the demo

Example

area

line

column

previous-series

curve: straight

API

Props

Name
Type
Default
Description
typeSparklineType"line"line, area or column.
colorstringCHART_SERIES_TOKENS[0]A chart token. Defaults to chart-1.
heightstring | number64The height.
line-widthnumber3The stroke width.
previous-seriesnumber[]—The previous period, drawn in stone.
curveSparklineCurve"smooth"smooth or straight.
labelstring—The accessible name.
interactivebooleantrueShows a pointer with the value on hover and with the arrow keys.
seriesChartSeriesInput[]The values.
categories(string | number)[][]Labels for the interactive pointer.

Events

Name
Payload
Description
@scrub[index: number | null]—
© 2026 melsami UI.
Developer documentation for melsami UI.