spacing: Number

Sets the spacing between Range Buttons in pixels.


Default: 0
Examples: 1, 3, 4, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   buttonStyle: {
     spacing: 5,
     .
     .
   }
 },
 .
 .
});
stockChart.render();



Try it Yourself by Editing the Code below.

  Also See:    



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