我希望将x轴设置为时间类型,并格式化为{hh:mm},例如17:45。
在这个演示中,配置有效:
我尝试了
在这个演示中,配置有效:
xAxis: {
type: "time",
},
value: [
[now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'),
Math.round(value)
]
但这种方法行不通,这里有Echarts图库中的我的演示:
xAxis: {
type: "time",
},
value: [
[now.getHours(), now.getMinutes()].join(":"),
Math.round(value)
]
我尝试了
type: "value"
,但仍然不起作用。