charts
charts copied to clipboard
Replicate Highcharts behaviour LegendItemClick on PieChart
Originally by LittleWombat
We are using a PieChart from Vaadin Charts 2.0.0.
Without adding a LegendItemCLickListener to the chart, it's using the standard behaviour from Highcharts. Now I would like to add a listener and still maintain this behaviour.
The problem is the Vaadin Charts API doesn't offer a way to replicate this behaviour. I can determine the corresponding DataSeriesItem from the LegendClickEvent but I cannot hide or disable the item itself.
Imported from https://dev.vaadin.com/ issue #16540
Originally by @johannest
Related forum post: https://vaadin.com/forum/#!/thread/9372950/