legendMarkerBorderThickness: Number

Sets the thickness of the Legend’s Marker Border in pixels. This property works only with Pie and Doughnut charts. If not set, takes the value from dataSeries’ legendMarkerBorderThickness if present.


Default: 0
Example: 4, 7..

Notes
  • There is no border in Legend Marker Type “cross”, hence legendMarkerBorderThickness doesn’t apply when legendMarkerType is “cross”


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

   ],

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