collapsibleThreshold: String

collapsibleThreshold controls the threshold for calculation of auto Scale Break. It is measured in percentage of Axis Scale. Auto Breaks would be applied in a range where no dataPoints are present and if the range is more then collapsibleThreshold.

By default, collapsibleThreshold’s value is set to “25%”. This means space between data points which have a difference of at least 25% of the scale will be collapsed with auto calculated breaks.

Default: “25%”
Options: “20%”, “40%”, “50%” etc.
Notes
  • collapsibleThreshold will be considered if autoCalculate is set to true.
  • collapsibleThreshold percent value is limited to a minimum of “10%”.
var  chart =  new  CanvasJS.Chart("chartContainer",
{
 .
 .
 axisY: {
	.
	.
	scaleBreaks: {
		autoCalculate: true,  // change to false
		collapsibleThreshold: "40%"
	},
	.
	.
}, 
 .
 . 
});
chart.render();


Try Editing The Code


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