💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
html ~~~ <div class="echart-canvas" echart-data='[{"title":"基础知识","get_score":11},{"title":"加分知识","get_score":12},{"title":"未分组","get_score":8}]' echart-config='{title:"分组得分占比图",type:"pie",name_key:"title",value_key:"get_score"}'></div> ~~~ js > 需要引入样式文件(此处以 wonderland 为例),可配置自定义样式:http://echarts.baidu.com/theme-builder/ 下载引入后即可配置使用。 ~~~ <script src="jquery-1.9.1.min.js"></script> <script src="echarts.min.js"></script> <script src="./theme/wonderland.js"></script> <script src="../echarts.helper.js"></script> <script> $('body').EChartHelper({ 'theme':'wonderland', }); </script> ~~~ ![](https://box.kancloud.cn/fc7606051e9a41d61883cc6bd2ef266f_768x419.png)