labelTextAlign: String

Sets the text alignment of the label in Range Buttons. 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: {
   buttonStyle: {
	 labelTextAlign: "right",
	 .
	 .
   }
 },
 .
 . 
});
stockChart.render();

Try Editing The Code


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