IChartVariwideColumn

interface
Chart

Pre-computed column descriptor produced by the variwide geometry engine. Consumed by the template to render a single <rect> with variable width encoding a secondary metric.

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.

index
requis
number
Index in the original data array.
category
requis
string
Category label from the datum.
value
requis
number
Raw primary value.
widthValue
requis
number
Raw secondary (width) value.
formattedValue
requis
string
Pre-formatted value string (primary).
formattedWidth
requis
string
Pre-formatted width string (secondary).
color
requis
string
Resolved CSS colour string (for fill).
x
requis
number
SVG X of the left edge of the bar.
y
requis
number
SVG Y of the top edge of the bar.
w
requis
number
Bar width in SVG pixels.
h
requis
number
Bar height in SVG pixels.
cx
requis
number
X center — used for the X-axis tick label.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Accessing column geometry in a custom tooltip slot

vue