Problems with PieChart Legend Listener

Hey,
I would like to receive the LegendItemClick Event

Like:

Chart chart = new Chart(ChartType.PIE);
        
        chart.addLegendItemClickListener(new LegendItemClickListener() {
            
            @Override
            public void onClick(LegendItemClickEvent event) {
                        DoSomeThing();
            }
        });

But it doesn’t seem to work. Could anyone help me?

Hi,

We have the same issue on our side. The same code with ChartType.COLUMN instead of ChartType.PIE works well however.

Thanks a lot