indexLabelWrap: Boolean

indexLabelWrap specifies whether to wrap or clip indexLabel once its width crosses indexLabelMaxWidth.

Default: true
Options: true, false.

Notes
  • Supported in all chart types.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
    type: "pie",
    indexLabelMaxWidth: 50,
    dataPoints: [
       { y: 10,  label: "label1", indexLabelWrap: false },//change to true
 ],
 }
 .
 . 
});
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.