Home › forums › Using CanvasJS › Dynamic chart with fixed X Axis
Tagged: chart, dynamic, fixed, x-axis
This topic contains 2 replies, has 2 voices, and was last updated by Suyash Singh 1 year, 5 months ago.
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.
You must be logged in to reply to this topic.