[英]how can I display time using ApexCharts?
I know the ApexCharts can help to display data using timeline chart.我知道 ApexCharts 可以帮助使用时间线图显示数据。 but the example(vue) only shown how to display the date like
但是示例(vue)仅显示了如何显示日期
new Date(1797, 2, 4).getTime(),
new Date(1801, 2, 4).getTime() ```
how can I change the value to display time? like 08:00-09:00
You can create your own x-axis labels in the dataset using the chart's xaxis
categories
option.您可以使用图表的
xaxis
categories
选项在数据集中创建自己的 x 轴标签。
For example:例如:
options: {
chart: {
id: 'mychart'
},
xaxis: {
categories: ['8:00','9:00','10:00','11:00','12:00','1:00','2:00','3:00']
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.