Home forums Using CanvasJS Unequal intervals in x axis

This topic contains 2 replies, has 2 voices, and was last updated by  Sunil Urs 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6765

    pthakkar
    Participant

    Hi

    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.

    #6775

    pthakkar
    Participant
    #6778

    Sunil Urs
    Keymaster

    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.


    Sunil Urs

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.