echarts实现3d柱状图

var xdata=[];
var ydata=[''];
var data1 = [
   {value:10,name:'1月'},
   {value:1,name:'2月'},
   {value:2,name:'3月'},
   {value:3,name:'4月'},
   {value:4,name:'5月'},
   {value:5,name:'6月'},
   {value:6,name:'7月'},
]
var hours = [0,1,2,3,4,5,6]
var data=echarts.util.map(data1, function(item, index) {
    return {
     //index值x值,2指示y值,item.value指z值。其中x值代表省的变化,z值代表信用的变化
      value: [ index,2, item.value],
        //柱状图的填充颜色
      itemStyle:{
         color:'#66D9EF'
      }
    }
})
for(var i=0;i

效果图:


demo1.png

你可能感兴趣的:(echarts实现3d柱状图)