![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echarts
千鱼三秒
这个作者很懒,什么都没留下…
展开
-
echarts 饼图legend超出隐藏省略号显示
legend: { data: ['1111','2222','5555'], right: '10', bottom:'5', formatter: function(name){ return name.length>10?name.substr(0,10)+"...":name; } }原创 2020-08-14 16:42:41 · 3192 阅读 · 0 评论 -
Echarts柱状图的每个柱体显示不同颜色
上一波代码示意图,黑色标注是主要设置柱体颜色的当柱子比颜色数组长度多时,会循环取色option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [{ data: [120, 200, 150, 80, 7...原创 2020-08-06 14:05:33 · 8306 阅读 · 1 评论