labelMaxWidth: Number

Sets the maximum width of label after which the it gets wrapped or clipped depending on whether labelWrap is set to true (default) or false.

Default: Automatically calculated based on the length of label.
Example: 4, 20, 100 etc.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
axisX:{
    crosshair:{
        enabled: true,
        labelMaxWidth: 20,
	.
	.
    }
},
 .
 . 
});
chart.render();


Try Editing The Code

  Also See:    


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