IChartSlots

interface
Data Visualisation

Slot signatures for the universal OrigamChart component. Replace the default tooltip card, a legend entry, the title block, or the empty state without losing the rest of the chart chrome.

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, category: string | number }) => any
Replace the default floating tooltip body. Receives the hovered point, its series and the X-axis category.
'legend-item'
(bindings: { series: IChartSeries, index: number, visible: boolean }) => any
title
() => any
Replace the title + subtitle block rendered above the plotting area.
empty
() => any
Rendered when series is an empty array or every series is hidden via the legend.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom tooltip and empty state

vue