IChartParetoProps

interface
Chart

Props for <OrigamChartPareto> — combines vertical columns sorted descending by value with a cumulative percentage line on a secondary right Y-axis. Typical uses: quality control, root-cause analysis, 80/20 rule. 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.

barColor
TIntent | string
Colour of all columns. Accepts a TIntent token or any raw CSS colour string. Default 'primary'.
lineColor
TIntent | string
Colour of the cumulative percentage line. Default 'danger'.
barGap
number
Gap in SVG pixels between adjacent columns. Default 4.
showLine
boolean
Whether to render the cumulative percentage line. Default true.
showLabel
boolean
Whether to show a value label above each column. Default false.
showAxis
boolean
Render X (category) and Y (value + percentage) axes. Default true.
showGrid
boolean
Render horizontal grid lines aligned with Y-axis ticks. Default true.
xAxisFormat
(value: string | number) => string
Formatter applied to X-axis category tick labels.
yAxisFormat
(value: number) => string
Formatter applied to the left Y-axis (value) tick labels.
cumulativeFormat
(value: number) => string
Formatter applied to the right Y-axis (cumulative %) tick labels. Default formats as rounded integer percentage, e.g. "80%".

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Pareto chart for defect root-cause analysis

vue