Home Forums Chart Support Control over algorithm to optimize the index labels Reply To: Control over algorithm to optimize the index labels

#34976

Tom,

As of now, it’s not possible to control the auto-hiding of indexLabels in case of pie/doughnut charts. However, you can use startAngle property to set the starting angle of the pie which rotates it. By doing this you can try to show the maximum number of indexlabels even when the width of the chart is reduced. Please find the code snippet below,

data: [{				
    type: "pie",
    startAngle: 70,
    dataPoints: [
      { label: "This is a label", y: 14}
    ]
}]

Kindly take a look at this JSFiddle for an example on a pie chart with an indexLabel.

pie chart with index-label


Adithya Menon
Team CanvasJS