首页 > 其他 > 详细

Echart--多个柱形图

时间:2018-03-02 12:05:10      阅读:516      评论:0      收藏:0      [点我收藏+]

设置数据:

效果图:
技术分享图片

optionAll: { title: { text: ‘营收情况‘, left: ‘center‘ }, tooltip: { trigger: ‘axis‘, axisPointer: { type: ‘cross‘, crossStyle: { color: ‘#999‘ } } }, legend: { // bottom: 10, // data: [‘金额‘] bottom: 10, left: ‘center‘, data: [‘预计可收‘, ‘已收‘, ‘剩余代收‘] }, xAxis: [ { type: ‘category‘, data: [], axisPointer: { type: ‘shadow‘ } } ], yAxis: [ { type: ‘value‘, name: ‘金额(元)‘, // min: 0, // max: 500, // interval: 100, axisLabel: { formatter: function(value) { let num = value / 1000 return num + ‘k‘ } } } ], series: [//一组显示多条柱形图 { barMaxWidth: ‘30‘, itemStyle: {normal: {color: ‘#999‘, label: {show: true}}}, name: ‘预计可收‘, type: ‘bar‘, data: []//[a,a,a,a] }, { barMaxWidth: ‘30‘, itemStyle: {normal: {label: {show: true}}}, name: ‘已收‘, type: ‘bar‘, data: []//[b,b,b,b] }, { name: ‘剩余代收‘, itemStyle: {normal: {label: {show: true}}}, type: ‘bar‘, data: []//[c,c,c,c] } ] }

  

Echart--多个柱形图

原文:https://www.cnblogs.com/LWJ-booke/p/8492166.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!