maxWidth: Number

Sets the maximum width of individual Inputfields in pixels. The text beyond maxWidth will be clipped.

Default: Automatically Calculated Based on the Range Selector’s width
Example: 150, 160, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   inputFields: {
     style: {
       maxWidth: 150,
       .
       .
     }
   }
 },
 .
 .
});
stockChart.render();

Try Editing The Code


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