legendMarkerColor: String

Sets the color of marker that is displayed on legend. This property overrides default Marker’s Color in Legend, which is same as dataSeries Marker Color. Value of legendMarkerColor can be “HTML Color Name” or “hex code”.


Default: dataSeries marker color
Example: “red”, “#008000” ..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
  legendMarkerColor: "red",

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


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.