var option={
timeline:{
left:'120',
right:'120',
data:['2013-01-01','2014-01-01','2015-01-01'],
label : {
formatter : function(s) {
console.info(s)
return (new Date(s)).getFullYear();
}
},
autoPlay : true,
playInterval : 3000
},
options:[
{
title : {text: '第一次普查'},
grid:{
top: 80,
bottom: 100
},
tooltip : {trigger: 'axis'},
xAxis:{data:['面积','蓄积','覆盖率']},
yAxis:{type : 'value'},
series:[{name: '2013',type: 'bar',data:[11,12,14]}]
},
{
title:{text:'第二次普查'},
xAxis:{data:['面积','蓄积','覆盖率','沙漠化']},
series :[{name: '2014',data:[14,5,56,25]}]
},
{
title:{text:'第三次普查'},
xAxis:{data:['沙漠化','覆盖率','蓄积']},
series :[{name: '2015',data:[12,45,26]}]
}
]
};
echarts4.x 多组播放功能
最新推荐文章于 2024-03-07 10:41:05 发布