maxNumberOfAutoBreaks: Number

By setting maxNumberOfAutoBreaks, you can control the maximum number of automatically added scaleBreaks when autoCalculate is set to true.

Default: 2
Options: 0,1,2,3,4,5
Notes
  • maxNumberOfAutoBreaks will be considered if autoCalculate is set to true.
  • Maximum value of maxNumberOfAutoBreaks can be 5.
var  chart =  new  CanvasJS.Chart("chartContainer",
{
 .
 .
 axisX: {
     scaleBreaks: {
	 autoCalculate: true,
	 maxNumberOfAutoBreaks: 3
     },
     .
     .
}, 
 .
 . 
});
chart.render();

Try Editing The Code


If you have any questions, please feel free to ask in our forums.Ask Question