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.



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

Comments 2

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