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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

index
required
number
Index in the original data array.
category
required
string
Category label from the datum.
value
required
number
Raw primary value.
widthValue
required
number
Raw secondary (width) value.
formattedValue
required
string
Pre-formatted value string (primary).
formattedWidth
required
string
Pre-formatted width string (secondary).
color
required
string
Resolved CSS colour string (for fill).
x
required
number
SVG X of the left edge of the bar.
y
required
number
SVG Y of the top edge of the bar.
w
required
number
Bar width in SVG pixels.
h
required
number
Bar height in SVG pixels.
cx
required
number
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

vue