多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
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)