echarts中x軸類型為time時(shí)如何顯示多條曲線?以echarts官網(wǎng)中動(dòng)態(tài)數(shù)據(jù)+時(shí)間坐標(biāo)軸的例子為例展示的數(shù)據(jù)坐標(biāo)點(diǎn)為一個(gè)一個(gè)的數(shù)據(jù),第一個(gè)數(shù)據(jù)為時(shí)間,第二個(gè)數(shù)據(jù)為數(shù)值function randomData() { now = new Date(+now + oneDay);
value = value + Math.random() * 21 - 10;
return {
name: now.toString(),
value: [
[now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'),
Math.round(value)
]
}
}那么如果我想以同一個(gè)時(shí)間軸繪制多條數(shù)據(jù)曲線,應(yīng)該如何繪制呢?
echarts中x軸類型為time時(shí)如何顯示多條曲線?
蕪湖不蕪
2018-09-15 10:09:27