labelWrap: Boolean

Setting labelWrap to true wraps the labels at labelMaxWidth. Clips the same when set to false.


Default: true
Example: true, false.

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisY:{
        labelWrap: true  // change to false
	labelMaxWidth: 50
 },
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 3

  1. how to false some part of the Label Wrapping?not for all,such as falsing the negtive and remaining the positive

  2. Hi,
    I’m looking for a way to align label of axis Y to left, not align right. Because when I use label for axis Y, some labels are short and some are long.
    Which option should I use?
    Thanks in advance.

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.