Sets the margin between marker and text of each item inside legend.
Default: Automatically calculated based on the chart size.var chart = new CanvasJS.Chart("container",
{
.
.
legend:{
.
markerMargin: 4,
.
},
.
.
});
chart.render();
Also See: