legendMarkerBorderThickness: Number

Sets the thickness of the legend’s Marker Border in pixels.

Default: 0
Example: 2, 4 ..
Note
  • There is no border in Legend Marker Type “cross”, hence legendMarkerBorderThickness doesn’t apply when legendMarkerType is “cross”
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
   legendMarkerBorderThickness: 2,

  },
 ]
 .
 .
});
chart.render();

Try Editing The Code


If you have any questions, please feel free to ask in our forums.Ask Question