autoCalculate: Boolean

When autoCalculate is set to true, chart automatically calculates and applies scaleBreaks wherever required. You can control threshold for creating a Scale Break by setting collapsibleThreshold.

Default: false
Options: true, false
Note
  • You can use maxNumberOfAutoBreaks to limit the number of Scale Breaks that are applied automatically.
var  chart =  new  CanvasJS.Chart("chartContainer",
{
 .
 .
 axisX: {
     scaleBreaks: {
         autoCalculate: true  // change to false
     },
     .
     .
}, 
 .
 . 
});
chart.render();

Try Editing The Code


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