Home forums Using CanvasJS Chart shrinks inward when scrolling through data and new axis label appears Reply To: Chart shrinks inward when scrolling through data and new axis label appears

#21784

Priyanka M S
Member

ChristianRemwood,

When the labelAutoFit property is set to true(by default), it places the labels on axisX such that the labels do not overlap or get clipped, hence pushes the entire label inside the chart causing it to shrink. Setting labelAutoFit: false should work fine in your scenario. Please take a look at this updated jsfiddle.

__
Priyanka M S
Team CanvasJS