Home Forums Chart Support Float y axis labels on top of scrolling chart Reply To: Float y axis labels on top of scrolling chart

#60725

@dpanscik,

It seems like you’re assigning the same ID to both the chart container and its wrapper. This is likely causing the overlayed canvas (added for the axis) to be removed. Replacing it with a unique ID should resolve this issue. Additionally, you need to call the copyAxis function when the window is resized or when scrolling occurs. Since you’re using Split.js, which doesn’t trigger an event on resizing the div blocks, there might be an issue with the positioning of the axis element. Please take a look at this updated JSFiddle for complete code.

—-
Manoj Mohan
Team CanvasJS