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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- categoryrequiredstring
- Category label shown on the X axis tick and in the tooltip.
- valuerequirednumber
- Primary value — drives the bar height via the Y scale (e.g. GDP in trillions, revenue in M€).
- widthrequirednumber
- Secondary value — drives the bar width proportionally (barPixels = plotWidth * width / Σwidths). e.g. population in M, market share %.
- colorTIntent | string
- Optional per-datum colour override. Accepts a TIntent token or any raw CSS colour string. When omitted the chart cycles through colorScheme.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
GDP × population variwide series