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