markerBorderColor: String

Sets the border color around marker. Value of markerBorderColor can be “HTML Color Name” or “hex” code.


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

Notes
  • There is no border in Marker Type “cross”, hence markerBorderColor doesn’t apply when markerType is “cross”


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

   ],

  },
 ]
 .
 .
});
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

    • radhika,

      Border color for dataPoint/dataSeries is not available yet. Hence it is not possible.

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