backgroundColorOnHover: String

Sets the background color of Range Buttons on hover. Values of backgroundColorOnHover can be specified in “HTML Color Name”, “hex code” or “rgba values”

Default: “#41a5f5” (varies based on themes)
Example: “blue”, “#2196f3”, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     backgroundColorOnHover: "#2196f3",
     .
     .
   },
 },
 .
 . 
});
stockChart.render();

Try Editing The Code


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