Home › forums › Using CanvasJS › Unequal intervals in x axis
This topic contains 2 replies, has 2 voices, and was last updated by Sunil Urs 4 years, 5 months ago.
Is it possible to have unequal interval in x axis.
I am plotting time in x axis. Entries are getting plotted after every 10 minutes. However if there is a gap of say 1 day (due to no entries during that time), there is a huge gap in the chart.
Is it possible to plot the time entries considering constant gap even though the entries may have different time gap.
Here is the jsfiddle http://jsfiddle.net/pthakkar/s0yfdLqr/
In that case the best option would be to use dataPoint’s label property instead of x. You can use library like momentjs for formatting the date/time before assigning it to label.
You must be logged in to reply to this topic.