Sets the text alignment of the legend. This feature is useful when itemWrap is set to true, and the legend text length exceeds itemMaxWidth, making it wrap onto multiple lines.
Default: “left”var chart = new CanvasJS.Chart("container", { . . legend: { itemTextAlign: "center" // change to "left" / "right" }, . . }); chart.render();
Also See: