labelFontSize: Number

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

Default: Automatically calculated based on StockChart size.
Example: 14, 16, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     labelFontSize: 16,
     .
     .
   }
 },
 .
 . 
});
stockChart.render();

Try Editing The Code


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