IChartParetoProps
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.
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.
- barColorTIntent | string
- Colour of all columns. Accepts a TIntent token or any raw CSS colour string. Default 'primary'.
- lineColorTIntent | string
- Colour of the cumulative percentage line. Default 'danger'.
- barGapnumber
- Gap in SVG pixels between adjacent columns. Default 4.
- showLineboolean
- Whether to render the cumulative percentage line. Default true.
- showLabelboolean
- Whether to show a value label above each column. Default false.
- showAxisboolean
- Render X (category) and Y (value + percentage) axes. Default true.
- showGridboolean
- 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