IChartBaseSlots

interface
Chart

Slot signatures shared across every per-type chart component. Covers tooltip body replacement, legend entry replacement, title block replacement and empty state.

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

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 via chart slots

vue