![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echarts
王小南写代码
这个作者很懒,什么都没留下…
展开
-
echarts-半圆
```var myData = [{name: ‘一班’,value: 200,per: 0.2}, {name: ‘二班’,value: 300,per: 0.3}, {name: ‘三班’,value: 500,per: 0.5}]var myColor = [’#06cdff’, ‘#00ff84’, ‘#fef34f’, ‘rgba(0, 0, 0, 0)’]...原创 2020-04-05 11:25:41 · 436 阅读 · 0 评论 -
liquidFill---实现柱状水滴图
var maxValue = 500;var value = 300;var percent = (value / maxValue).toFixed(2)var labelPosition = (1 - parseFloat(percent)) * 100 + ‘%’ //标签位置动态固定在水滴上方console.log(echarts.version)var data = [perc...原创 2020-04-05 10:46:07 · 1438 阅读 · 0 评论 -
echarts-半圆
制作半圆:用到echarts,并用markline制作了4条标线var data = [];var banyuanData=[{typename: ‘项目一’, count: 45756, color: [’#1eabfd’, ‘#01f5fe’]}, {typename: ‘项目二’, count: 32846, color: [’#5ae190’, ‘#7ffe56’]},{t...原创 2020-03-11 15:53:32 · 1731 阅读 · 0 评论