This property lets you set margin between chart’s boundary and Axis.
Default: 2var chart = new CanvasJS.Chart("container",
{
.
.
axisY:{
title: "Title with Margin",
margin: 10,
},
.
.
});
chart.render();
Also See:
3 Comments
How do you put more space between the y-axis labels and the y-axis title?
As of now it is automatically managed and is not possible to customize.
Margin should also be optionally applied to right side.