API REFERENCE
weightScale
Word cloud: weight→fontSize curve — linear (default) / sqrt / log.
Definition
| Item | Value |
|---|---|
| JavaScript property | weightScale |
| HTML attribute | weight-scale |
| Type | WordCloudWeightScale |
| Default | undefined |
| Allowed values | linear, sqrt, log |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
- WordCloudWeightScale
Type definition
Configuration example
// Register sy-word-cloud and create the element before configuring it.
chart.weightScale = "sqrt";