markerBorderColor: String

Sets the border color around marker. Value of markerBorderColor can be “HTML Color Name” or “hex code”.

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

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

Try Editing The Code


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

Comment

  1. Sam says:

    Is there a way to do this with pie chart slices? So we can have borders around the slices? I can’t find this information anywhere