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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom tooltip and empty state

vue