IChartWordCloudProps

interface
Chart

Props for <OrigamChartWordCloud>. Reads series[0]; each datum must be a { text, value, color? } object. Controls font sizes, rotation strategy, font family/weight, and optional value formatters.

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.

minFontSize
number
12
Minimum font size in px applied to the word with the lowest value.
maxFontSize
number
64
Maximum font size in px applied to the word with the highest value.
rotation
TChartWordCloudRotation
'none'
Word rotation strategy: 'none' (all horizontal), 'random' (uniform random in [-30°, 30°]), or 'orthogonal' (0° or 90° alternating by index parity).
fontFamily
string
'inherit'
Font family applied to all words. Defaults to inherit so it picks up the host page typeface.
fontWeight
number | string
600
Font weight applied to all words.
xAxisFormat
(value: number | string) => string
X-axis / value formatter. Unused for word clouds; kept for API symmetry with other chart families.
yAxisFormat
(value: number) => string
Y-axis formatter applied to the value shown in the tooltip. When omitted the raw number is displayed.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Word cloud with orthogonal rotation and custom fonts

vue