backgroundColorOnSelect: String

Sets background color of the Range Button that has been selected. Values of backgroundColorOnSelect 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: {
     backgroundColorOnSelect: "#41a5f5",
     .
     .
   }
 },
 .
 . 
});
stockChart.render();



Try it Yourself by Editing the Code below.




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