labelMaxWidth: Number

labelMaxWidth defines the maximum width of labels after which they get wrapped or clipped depending on labelWrap’s value. It overrides the labelMaxWidth value set at axis level.

Default: Automatically calculated based on the length of label.
Example: 4, 20, 100 etc.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
	stripLines: [
		{
		 labelWrap: true  // change to false
		 labelMaxWidth: 50
			
		}
	]
   },
 .
 . 
});
chart.render();

Try Editing The Code

  Also See:    


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