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
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.
- indexrequirednumber
- Index in the original data array.
- categoryrequiredstring
- Category label from the datum.
- valuerequirednumber
- Raw primary value.
- widthValuerequirednumber
- Raw secondary (width) value.
- formattedValuerequiredstring
- Pre-formatted value string (primary).
- formattedWidthrequiredstring
- Pre-formatted width string (secondary).
- colorrequiredstring
- Resolved CSS colour string (for fill).
- xrequirednumber
- SVG X of the left edge of the bar.
- yrequirednumber
- SVG Y of the top edge of the bar.
- wrequirednumber
- Bar width in SVG pixels.
- hrequirednumber
- Bar height in SVG pixels.
- cxrequirednumber
- X center — used for the X-axis tick label.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Accessing column geometry in a custom tooltip slot