博客
关于我
百度echart绘制圆环
阅读量:131 次
发布时间:2019-02-26

本文共 1785 字,大约阅读时间需要 5 分钟。

??????

?????ECharts???????????????????????????????

?????????????

var pie = function (options) { var option = { backgroundColor: "#fff", title: { show: false, text: options.title, textStyle: { fontSize: 24 * iWidth / 720, color: "#36383c", fontWeight: "normal", fontFamily: "Microsoft Yahei" }, left: 20 * iWidth / 720, top: 20 * iWidth / 720 }, grid: { top: 0 * iWidth / 720, left: '50%', right: '50%', bottom: 45 * iWidth / 720 }, // tooltip????? legend: { orient: 'vertical', left: 180 * iWidth / 720, top: "middle", icon: 'circle', itemGap: 20 * iWidth / 720, textStyle: { fontSize: 16 * iWidth / 720, color: "#91989e", fontWeight: "normal", fontFamily: "Microsoft Yahei" }, selectedMode: false, data: options.legendData }, series: [ { name: '????', type: 'pie', center: ["28%", "50%"], radius: [54 * iWidth / 720, 70 * iWidth / 720], top: "50%", avoidLabelOverlap: false, label: { normal: { show: false, position: 'center' }, emphasis: { show: false, textStyle: { fontSize: 30 * iWidth / 720, color: "#91989e", fontWeight: "normal", fontFamily: "Microsoft Yahei" } } }, labelLine: { normal: { show: false } }, data: [], } ] };
//????if (options.isBig) {  option.legend.left = 300 * iWidth / 720;}//????(function () {  options.seriesData.map(function (item, index) {    option.series[0].data.push({      value: item.value,      name: item.name,      itemStyle: {        normal: {          color: colorGroup[index % colorGroupLen],          borderColor: '#fff',          borderType: 'solid',          borderWidth: 5        }      }    });  });})();return option;

};

?????????????

1. ???????

  • ?????????
  • ???????????????
  • ??????

2. ???????

  • ??options????????
  • ????????
  • ?????????

3. ???????

  • ?????????
  • ??????
  • ????????

??????????????????????????????????????????????????????????????????????????

转载地址:http://kpvf.baihongyu.com/

你可能感兴趣的文章
NFS网络文件系统
查看>>
nft文件传输_利用remoting实现文件传输-.NET教程,远程及网络应用
查看>>
NFV商用可行新华三vBRAS方案实践验证
查看>>
ng build --aot --prod生成文件报错
查看>>
ng 指令的自定义、使用
查看>>
nghttp3使用指南
查看>>
Nginx
查看>>
nginx + etcd 动态负载均衡实践(三)—— 基于nginx-upsync-module实现
查看>>
nginx + etcd 动态负载均衡实践(二)—— 组件安装
查看>>
nginx + etcd 动态负载均衡实践(四)—— 基于confd实现
查看>>
Nginx + Spring Boot 实现负载均衡
查看>>
Nginx + uWSGI + Flask + Vhost
查看>>
Nginx - Header详解
查看>>
nginx 1.24.0 安装nginx最新稳定版
查看>>
nginx css,js合并插件,淘宝nginx合并js,css插件
查看>>
Nginx gateway集群和动态网关
查看>>
Nginx Location配置总结
查看>>
Nginx Lua install
查看>>
Nginx upstream性能优化
查看>>
Nginx 中解决跨域问题
查看>>