padding: Number/Object

Sets the padding for Inputfields.


Default: { left: 5, right: 5, top: 2, bottom: 2 }
Example: { left: 2, right: 2, top: 2, bottom: 2 }, 2, 3, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   inputFields: {
     style: {
       padding: 3,
       .
       .
     }
   }
 },
 .
 .
});
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