You must be logged in to post your query.
Home › Forums › StockChart Support › How to make the x-axis labels fixed
Tagged: axisX, Stock Chart
Hello
I have a stock chart, where under charts array I have multiple charts, which makes the container scrollable. I only have axisX2 label for the top chart. My requirement is that while keeping the scroll feature I need to make the x-axis labels for the top most chart within view, i.e (the top most chart’s x-axis will be fixed) even if the user scrolls.
Fiddle link: https://jsfiddle.net/sgh1wpb4/2/
@mustadirmahmood,
It is not possible to fix the x-axis to the top of the stockchart while scrolling through other charts in a stockchart as of now. However, you can position an overlayed canvas on top of the first chart and copy the x-axis to the overlayed canvas to achieve your requirement.
Please check this updated JSFiddle for a working example.
— Thangaraj Raman Team CanvasJS
You must be logged in to reply to this topic. Login/Register