IChartVariwideDatum

interface
Chart

A single datum in the variwide series. Encodes two dimensions simultaneously: value → bar height (primary metric, maps to Y axis) and width → bar width (secondary metric, proportional share of plot width).

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.

category
requis
string
Category label shown on the X axis tick and in the tooltip.
value
requis
number
Primary value — drives the bar height via the Y scale (e.g. GDP in trillions, revenue in M€).
width
requis
number
Secondary value — drives the bar width proportionally (barPixels = plotWidth * width / Σwidths). e.g. population in M, market share %.
color
TIntent | string
Optional per-datum colour override. Accepts a TIntent token or any raw CSS colour string. When omitted the chart cycles through colorScheme.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

GDP × population variwide series

typescript