width: Number

Sets the width of individual Inputfields in pixels.


Default: Automatically Calculated Based on the Range Selector’s width
Examples: 90, 100, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   inputFields: {
     style: {
       width: 90,
       .
       .
     }
   }
 },
 .
 .
});
stockChart.render();



Try it Yourself by Editing the Code below.




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