You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some research about this, and it seems if the point has drilldown there is no PointClickEvent by design, and that client-side doesn't have enough information at the moment to generate the correct PointClickEvent details for the click on the second level (leaf points).
If the use case requires an event for every point click one option is to use lazy drilldown as shown in Column with Native Lazy Drilldown demo, this approach allows getting a DrilldownCallback each time a point with drilldown is clicked, and for points with no drilldown a PointClickEvent event will be triggered with the correct pointIndex and series allowing something like ((DataSeries) event.getSeries()).get(event.getPointIndex())) to get the clicked point info
I'll leave the issue open as the PointClickEvent info is incorrect if Drilldown is not lazy.
Adding pointClickListener to Drilldown chart doesn't return back any useful information for user.
Calling
chart.addPointClickListener(event -> { System.out.println(event.getCategory()); });
returns the index of drilldown series if the drillSeries is clicked. There is no possibility to get any more information based on it.
Tested with vaadin charts 3.2.1
The text was updated successfully, but these errors were encountered: