Home forums Using CanvasJS The graph loses the centering – a strange right margin Reply To: The graph loses the centering – a strange right margin

#22528

Priyanka M S
Member

@d3bsky,

Whenever the labels get clipped at the extremes of the axis, the plot area moves towards the left/right in order to adjust the labels without clipping them.
To avoid this behaviour, you can set labelAutoFit property to false.

If this doesn’t help you, kindly create a jsfiddle reproducing the issue you are facing, so that we can look into the options you are using, understand your code better and help you out.

__
Priyanka M S
Team CanvasJS