indexLabelMaxWidth: Number

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

Default: Automatically calculated based on the size of chart.
Options: 4, 20, 100 etc.

Notes
  • Supported by all Chart Types.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
    type : "pie",
    indexLabelMaxWidth: 20 
  },
 ]
 .
 . 
});
chart.render();



Try it Yourself by Editing the Code below.

  Also See:    



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