Sets the text alignment of chart title. This feature is useful whenever wrap is set to true, title length exceeds maxWidth, and title is wrapped onto multiple lines.
Default: Depends on horizontalAlignvar chart = new CanvasJS.Chart("container", { . . title: { textAlign: "center" // change to "left" / "right" }, . . }); chart.render();
Also See: