码迷,mamicode.com
首页 > 其他好文 > 详细

Echart--多个柱形图

时间:2018-03-02 12:24:35      阅读:689      评论:0      收藏:0      [点我收藏+]

标签:tle   form   body   div   option   mat   name   --   arm   

设置数据:

效果图:
技术分享图片

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--多个柱形图

标签:tle   form   body   div   option   mat   name   --   arm   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!