![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echars
joney_zy
这个作者很懒,什么都没留下…
展开
-
echars柱状图与折线相结合,并且都是渐变色
let category = [];let lineData = [40000, 30000, 10000, 23000, 9000, 15000, 23000, 52000, 21000, 10000, 41000];for (let i = 0; i < 11; i++) { category.push('地市' + i);}// optionoption = { backgroundColor: '#0f375f', tooltip: { trigger: '.原创 2022-04-06 17:57:18 · 1177 阅读 · 0 评论 -
echars堆叠柱状图,当上面数据为0时,下面的是圆角,反之上面圆角,下面直角
let xAxisData = [];let redm = [1,1,3,3,2,4,2,1,3,3];let yellowm = [1,2,1,0,1,0,3,2,0,3];let redyellowm = [];for (let i = 0; i < 10; i++) { xAxisData.push('地市' + i);}for (let i = 0; i < 10; i++) { redyellowm.push({ red: redm[i], yel.原创 2022-04-06 17:45:27 · 544 阅读 · 0 评论