borderColor: String

Sets the border color of Range Buttons. Values of borderColor can be specified in “HTML Color Name”, “hex code” or “rgba values”


Default: “#2196f3” (varies based on themes)
Example: “blue”, “#41a5f5”, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     borderColor: "#41a5f5",
     .
     .
   },
 },
 .
 . 
});
stockChart.render();



Try it Yourself by Editing the Code below.




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