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 Calculatedvar chart = new CanvasJS.Chart("chartContainer",
{
.
.
axisX: {
scaleBreaks: {
customBreaks: [{
spacing: "2%",
.
.
}]
}
},
.
.
});
chart.render();