IChartPictorialProps
Props for <OrigamChartPictorial> — the pictorial / isotype family. Each data value is represented as a column of repeated SVG icons; filled icons count = Math.round(value / iconsPerUnit). Extends IChartBaseProps with icon appearance, direction, and rendering mode.
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.
- iconstring
- SVG <path d="…"> string for the icon drawn in each slot. Must fit a viewBox="0 0 24 24" coordinate system. Default: person silhouette.
- iconColorTIntent | string
- Colour applied to all filled icons. Accepts a TIntent name or any raw CSS colour string. When omitted, colours cycle through colorScheme by series index.
- emptyIconColorstring
- Colour painted on background icon slots that are not yet filled. Default "rgba(0,0,0,0.1)".
- iconsPerUnitnumber
- How many data units one icon represents. E.g. iconsPerUnit=10 → a value of 65 renders 7 filled icons (rounded). Default 1.
- directionTDirection
- Stacking direction — "vertical" stacks icons bottom-to-top, "horizontal" stacks them left-to-right. Default "vertical".
- modeTChartPictorialMode
- Rendering mode — "stack" = classic isotype rows of small icons (default); "fill" = one large icon per category clip-masked to the fill ratio.
- showLabelboolean
- Display the raw value label above (vertical) or to the right (horizontal) of each column. Default true.
- showAxisboolean
- Display the X-axis category labels. Default true.
- xAxisFormat(value: string | number) => string
- X-axis / category label formatter. Identity by default.
- yAxisFormat(value: number) => string
- Y-axis / value formatter. String(value) by default.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Isotype chart with custom icon and fill mode