padding: Number/Object

Sets space around the text of Range Buttons.

Default: { left: 5, right: 5, top: 2, bottom: 2 }
Examples: { left: 2, right: 2, top: 2, bottom: 2 }, 7, 10, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     padding: 10,
     .
     .
    }
 },
 .
 .
});
stockChart.render();

Try Editing The Code

  Also See:    


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