labelTextAlign: String

Sets the text alignment of axisY stripLine’s label. This feature is useful whenever label text is wrapped onto multiple lines.

Default: “left”
Options: “left”, “center”, “right”
var  chart =  new  CanvasJS.Chart("container", {
 .
 .
 axisY: {
	stripLines: [
		{
		 labelTextAlign: "center" // change to "left" / "right"
		}
	]
   },
 .
 . 
});
chart.render();

Try Editing The Code


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