Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Data Labels and Pie Charts
I setup a pie chart and am using the following data label formatter:
dataLabels.setFormatter("'<b>'+ this.point.name +'</b>: '+ this.percentage.toFixed(0) +' %'");
The out put of this formatter is the following: Name: 50%
I would like to add more data to the label so it prints the number of items as well as the percentage like the following:
Name (75): 50%
Is it possible to do this, and if so, how do I set that data and display it?
Thanks,
Steve
I got this to work. Instead of creating a global DataLabels object and setting it in my PlotOptionsPie object, I am creating a DataLabels object per DataSeriesItem and setting the values I need there.
--Steve