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 1 month, 1 week ago.

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

    Jyxx
    Member

    Hi,

    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.

    #15107

    Jyxx
    Member
    #15146

    Suyash Singh
    Moderator

    @jyxx,

    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.