IChartSparklineSlots

interface
Data Visualisation

Slot signatures exposed by OrigamChartSparkline. Two optional slots: tooltip to replace the default hover body, and empty to render when the series carries no data.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

tooltip
(bindings: { point: IChartPoint, series: IChartSeries, index: number }) => any
Replace the default tooltip body on hover. Receives the hovered point, its series and the data index.
empty
() => any
Rendered when series is empty or carries no data.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom sparkline tooltip

vue