spacing property allows you to control the space occupied by Custom Break. Value can either be in pixels (number – ex: 5) or percent (string – ex: “4%”). Percent values are relative to corresponding Axis length.
Default: Automatically Calculated
- var chart = new CanvasJS.Chart("chartContainer",
- {
- .
- .
- axisY: {
- scaleBreaks: {
- customBreaks: [{
- spacing: "2%",
- .
- .
- }]
- }
- },
- .
- .
- });
- chart.render();