textAlign: String

Sets the text alignment of Inputfields. This feature is useful for localization / Right-to-Left (RTL) language support.

Default: “center”
Options: “left”, “center”, “right”
var stockChart = new CanvasJS.StockChart("container", {
 .
 .
 rangeSelector: {
   inputFields: {
     style: {
       textAlign: "right",
       .
       .
     }
   }
 },
 .
 .
});
stockChart.render();

Try Editing The Code

  Also See:    


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