labelFontColor: String

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

Default: “grey”
Example: “red”, “#FAC003”, …

var stockChart = new CanvasJS.StockChart("container",
 rangeSelector: {
   buttonStyle: {
     labelFontColor: "#FAC003",

Try it Yourself by Editing the Code below.

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