legendMarkerBorderColor: String

Sets the border color around the legend marker. Value of legendMarkerBorderColor can be “color names” or “hex code”.

Default: dataSeries color.
Example: “red”, “#008000” ..
Note
  • There is no border in Legend Marker Type “cross”, hence legendMarkerBorderColor doesn’t apply when legendMarkerType is “cross”
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
   legendMarkerBorderColor: "#008000",

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

Try Editing The Code


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