词云图中如何自定义词语的字体大小?
的有关信息介绍如下:
如果使用的是VChart,你可以设置wordCloudChart.fontSizeRange来配置字体大小范围,它表示数据最小值和最大值分别对应的文字大小,在你给出的例子中,可以配置wordCloudChart.fontSizeRange: [5, 40]来达到预期效果。
代码参考 Code Example
在线效果参考:https://codesandbox.io/s/wordcloud-chart-fontsizerange-znkv37
词云demo:https://www.visactor.io/vchart/demo/word-cloud-chart/word-cloud-basic
词云教程:https://www.visactor.io/vchart/guide/chart/word-cloud
相关api:https://www.visactor.io/vchart/option/wordCloudChart#fontSizeRange
github:https://github.com/VisActor/VChart



