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 Editing The Code


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

2 Comments

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