Sets the text alignment of the label in Range Buttons. This feature is useful for localization / Right-to-Left (RTL) language support.
Default: “center”var stockChart = new CanvasJS.StockChart("container", {
.
.
rangeSelector: {
buttonStyle: {
labelTextAlign: "right",
.
.
}
},
.
.
});
stockChart.render();