accepts children
import Sparkline from '@fuzdev/fuz_ui/Sparkline.svelte'; values
number[]max?
The value rendered at full height and full alpha.
Pass a shared max across sparklines for comparable scales.
Defaults to the local max of values.
numberscale?
Vertical scale for the line's geometry — see SparklineScale.
The alpha fade always tracks the linear ratio regardless of scale.
'linear'width?
Width of the svg in px.
number100height?
Height of the svg in px.
number24stroke_width?
number2alpha_floor?
Stroke alpha at a value of 0, scaling linearly to 1 at max.
number0.4end_dot?
Renders a dot at the final point, anchoring the "now" end of the line.
booleanfalselabel?
Accessible label. When omitted the svg is aria-hidden.
stringexternal types
OmitStrict<SvelteHTMLElements['svg'], 'values' | 'width' | 'height' | 'scale'>