Home forums Using CanvasJS Dynamic chart with fixed X Axis

This topic contains 2 replies, has 2 voices, and was last updated by  Suyash Singh 2 years, 4 months ago.

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


    I am trying to make a dynamic chart which has a fixed x-axis.

    I am looking for the x-axis to be in seconds with the left being -60 secs, the center being 0 secs (now) and the right +60 secs. The graph is to be dynamic, so would like the x-axis to remain the same while the data moves left. As per the below screenshot.

    Is this possible with canvasjs? I have had a few attempts but have been unsuccessful.

    Thanks for any help.



    You can achieve this by having one more axisX with stripLines, viewportMinimum and viewportMaximum set as per your requirements. Also, you will need to hide the default axisX. Please have a look at this jsfiddle.

    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.