IChartVariwideProps

interface
Chart

Props for <OrigamChartVariwide>. A variwide chart encodes two metrics per category: height for the primary value (Y axis) and width for the secondary value (proportional share of the plot width). Typical uses: GDP × population, revenue × market share, response time × request count.

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

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

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.

barGap
number
2
Gap in SVG pixels between adjacent columns.
showLabel
boolean
true
Show the value label above each column.
showAxis
boolean
true
Render X (category) and Y (value) axes.
showGrid
boolean
true
Render horizontal grid lines aligned with Y-axis ticks.
xAxisFormat
(value: string | number) => string
Formatter applied to X-axis category tick labels. When omitted the category string is shown as-is.
yAxisFormat
(value: number) => string
Formatter applied to Y-axis value tick labels and to the primary-value display in tooltip and above-bar label.
yMin
number
Override the auto-computed Y minimum. Useful when the data starts well above zero.
yMax
number
Override the auto-computed Y maximum.

É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 chart

vue