IChartPolarBarProps

interface
Chart

Props for <OrigamChartPolarBar> — the polar bar (nightingale-rose) family. A single series of N data points is rendered as N wedge-shaped arcs arranged radially. Commonly used for cyclical data (hours per day, monthly activity). Extends IChartBaseProps.

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.

innerRadius
number
Fraction of the total radius reserved as a centre hole. 0 = no hole (wedges meet at centre). 1 = zero-thickness ring. Default 0.1.
startAngle
number
Start angle in radians for the first wedge. 0 = 3 o'clock; -Math.PI/2 = 12 o'clock (conventional). Default 0.
gap
number
Angular gap between consecutive wedges in radians. 0 = no gap (flush). Default 0.02.
maxValue
number
Override the auto-computed maximum value used to scale wedge radii. When omitted, max(series[0].data) is used.
showLabel
boolean
Render the category label outside the outer radius of each wedge. Default true.
showValue
boolean
Render the numeric value label inside the wedge when there is sufficient angular room. Default false.
xAxisFormat
(value: string | number) => string
Formatter applied to the tooltip X label (category name / index).
yAxisFormat
(value: number) => string
Formatter applied to the tooltip Y value and the in-wedge value label.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Nightingale-rose chart for weekly activity

vue