indexLabelWrap: Boolean

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

Default: true
Options: true, false.

  • 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

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