Home Forums Chart Support Chart compressed when add more chart lines Reply To: Chart compressed when add more chart lines

#36751

@ragu1991nathan,

By default, axis reserves some space around it which can be removed by setting margin: -5. You can also achieve the same by returning an empty string in labelFormatter as shown below –

labelFormatter: function(e) {
     return "";
}

Please take a look at this updated JSFiddle for a working example with complete code.

Removing padding from axis

___________
Indranil Singh Deo
Team CanvasJS