indexLabelMaxWidth: Number

indexLabelMaxWidth defines the maximum width of labels after which they get clipped or wrapped depending on indexLabelWrap’s value.

Default: Automatically calculated based on Chart Size.
Options: 4, 20, 100 etc.

Notes
  • Supported in all Chart Types


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
      type: "pie",
      dataPoints: [
         { y: 10,  label: "label1",  indexLabelMaxWidth: 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.