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

  Also See:    


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