I am looking to create a donut chart where instead of the pieces of the pie showing the percentage of the total, i'd like it to highlight the label/legend for each element?
I have tried using the formatter function e.g.
formatter: function(value, { seriesIndex, dataPointIndex, w }) {
return w.config.series[seriesIndex].name + ": " + value.toFixed(0)+ " %"
},
But this generates labels on each of the donut segments - undefined: 26 %
Would appreciate any thoughts on how to do this.
Many thanks,
Nigel