Drilldown a Vaadin Pie Chart

Hi folks,

I’m using Vaadin Charts 1.1.5.
I try to drill down a piece of a pie chart in this way:

addPointClickListener(new PointClickListener() {
public void onClick(PointClickEvent event) {
String category = event.getCategory();
(…)

But category is always “undefined”.
So I tried to set the categories by

getConfiguration().getyAxis().setCategories(…

also
getConfiguration().getxAxis().setCategories(…

Nothing works as hoped.

I fill the chart like this:

String dimensionLabels[] = …
Double[] values = …
SolidColor[] colors = …
series.setData(dimensionLabels, values, colors);

Any Ideas?
Hopefully, Robert

I found the answer by myself:


category = ((DataSeries) event.getSeries()).get(event.getPointIndex()).getName()

Bye, Robert

Thanks Robert.
That was helpful.