maxWidth: Number

Sets the maximum width of each Range Button, beyond which label inside the button will be clipped.

Default: Automatically calculated based on width of Range Selector.
Examples: 4, 8, 16 …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     maxWidth: 10,
     .
     .
   }
 },
 .
 . 
});
stockChart.render();

Try Editing The Code

  Also See:    


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