labelFontStyle: String

Sets the font style of label (text) shown in Range Buttons.


Default: “normal”
Options: “normal”, “italic”, “oblique”

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     labelFontStyle: "italic",
     .
     .
   }
 }
 .
 . 
});
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