Sets the text alignment of axisX title. This feature is useful whenever titleWrap is set to true, title length exceeds titleMaxWidth, and title is wrapped onto multiple lines.
Default: “left”var chart = new CanvasJS.Chart("container", { . . axisX:{ titleTextAlign: "center" // change to "left" / "right" }, . . }); chart.render();
Also See: