vue_echarts_按文字的值多少动态表示组件_文字云

效果图

echarts示例地址:https://gallery.echartsjs.com/editor.html?c=xJxYglL_kP&v=1

在vue项目中开发

下载文字云/词云的资源

npm install echarts
npm install echarts-wordcloud

在main.js中引入

import echarts from 'echarts';

require('echarts-wordcloud');

像其余echarts一样写options,运行myChart.setOption(option)就可以了,下载配置文字云主要是为了在option配置项中的type:"wordCloud"能够找到资源

原文地址:https://www.cnblogs.com/liuXiaoDi/p/13631046.html