labelFontColorOnHover: String

Sets the color of label (text) shown in Range Buttons on hover. The value of labelFontColorOnHover can be a “HTML Color Name”, “hex code” or “rgba values”

Default: “grey”
Example: “red”, “#FAC003”, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     labelFontColorOnHover: "#FAC003",
     .
     .
   }
 },
 .
 . 
});
stockChart.render();

Try Editing The Code


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