简体   繁体   中英

CanvasJS Strange format of Time on x-Axis

I created this diagram with canvasJS. The X-axis is supposed to show the time of the day in hours. Right now, the time looks like 1:0, 3:0. But I would like to have it like 01:00, 03:00. How can I fix that? Furthermore, the Y-axis does not set automatically. I would like to have only the value area in which points are set. Thank you very much!

图表JS图

在axisX对象中,该值应为: axisX: {valueFormatString: "HH:DD"}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM