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 Editing The Code

  Also See:    


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

3 Comments

  1. taohan says:

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

  2. Albert says:

    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.

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