dimanche 1 mars 2015

Prevent datalabel from appearing above or below pie chart


I am using Highcharts to display a doughnut chart. The chart has dataLabels set up on it.


When the slice of the chart has a midpoint near the top or bottom of the chart, the dataLabel gets put above or below the chart image itself. When the chart renders, this causes the height of the chart to shrink, which is undesirable. What makes the shrinking even worse is the size of the doughnut "hole" is calculated from the height of the chart container and not the chart drawing, so it remains the same, which makes the chart itself very skinny.


Is there a way to prevent the labels from going above or below the chart and keep them from squishing the chart? Or a way I could add that functionality in via a certain event handler or something?


Thanks!





Aucun commentaire:

Enregistrer un commentaire