Sets the border color around legend marker. Value of legendMarkerBorderColor can be “color names” or “hex code” . This property works only with Pie and Doughnut charts. If not set, takes the value from dataSeries’ legendMarkerBorderColor if present.
Default: dataSeries marker colorvar chart = new CanvasJS.Chart("container",
{
.
.
data:[ {
legendMarkerBorderThickness: 2,
dataPoints: [
{x: 10 , y: 50 , legendText: "Apple", legendMarkerBorderColor: "green"},
],
},
]
.
.
});
chart.render();
Also See: