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",
{
 .
 .
 axisY: {
	.
	.
	scaleBreaks: {
		autoCalculate: true,
		maxNumberOfAutoBreaks: 3
	},
	.
	.
}, 
 .
 . 
});
chart.render();



Try it Yourself by Editing the Code below.



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.