使用dataset设置多条数据,指定x轴为时间类型时,无法正常显示
配置项如下
option = {
dataset:{
source:[
['time',"aaa",'bbb'],
["2018-10-14 14:48:00",0,100],
["2018-10-14 17:05:00",4,89],
["2018-10-14 18:38:00",13,65],
["2018-10-14 20:57:00",13,47],
["2018-10-14 23:02:00",34,53],
["2018-10-15 01:11:00",23,13],
["2018-10-15 02:37:00",45,14],
["2018-10-15 04:56:00",56,15],
["2018-10-15 06:20:00",67,12],
["2018-10-15 07:10:00",56,43],
["2018-10-15 08:48:00",43,10],
["2018-10-15 11:14:00",43,34],
["2018-10-15 12:48:00",45,23]
]
},
legend: {
type: 'scroll',
bottom: 10,
icon: 'roundRect'
},
tooltip: {
trigger: 'axis'
},
xAxis: {
boundaryGap: false,
type: 'category',
// type:'time'
},
yAxis: {
type: 'value'
},
series:[
{type:'line'},
{type:'line'},
]
};