API REFERENCE

weightScale

Word cloud: weight→fontSize curve — linear (default) / sqrt / log.

Definition

ItemValue
JavaScript propertyweightScale
HTML attributeweight-scale
TypeWordCloudWeightScale
Defaultundefined
Allowed valueslinear, sqrt, log

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.

Configuration example

javascript
// Register sy-word-cloud and create the element before configuring it.
chart.weightScale = "sqrt";