markerColor: String

Sets the color of marker that is displayed on the Chart. Legend Marker for the series use same Color as set here unless overridden using legendMarkerColor property.


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

Notes
  • If color is not set, dataSeries “color” is taken as “markerColor”.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
  data:[ {
   dataPoints: [
    {x: 10 , y: 50 , markerColor: "red"},

   ],

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


Try it Yourself by Editing the Code below.



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.

Comments 2

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.