Sparkline
Sparkline: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Sparkline#
Props
- Type
number[]{ x: number | Date; y: number; }[]
- Type
number
- Type
number
- Type
Pick<…>
The sparkline's accessible name, as on every chart (Accessibility). With a name the sparkline is one image (role="img") with that name; without one, or with a blank one, it is decorative and hidden from assistive technology (W6). A sparkline has no description, table or announcements.
- Type
string
- Type
readonly [number, number]
The value domain, exact (T9): [low, high] maps to the bottom and the top of the sparkline, with no padding and no zero added, so sparklines that share one domain (a grid column) draw equal values at equal heights. A value beyond it is drawn to the edge and keeps its own number in the CSV; a min, max or last dot outside it is not drawn. A bar still reads from zero: a zero outside the domain is cut at the nearest edge, never moved. Two finite numbers, low below high, or it is reported and the automatic domain applies. Default: automatic (the data's extent with a tenth of its range on each side; a bar sparkline's extent always reaches zero).
- Type
boolean
- Type
boolean
- Type
"area""bar""line"
Events
Called by the component when something happens.
- Type
(result) => void
Called with the file when an export (png/svg/csv/pdf) completes.
- Type
() => void
Called exactly once, after first successful mount with valid dimensions, before any entrance animation.
Other props, such as the standard attributes of the underlying element, className and ref, are passed through.