native js events in Vaadin Chart

I like to detect click events for “category”, “xaxis”, “bar”, “point” at Vaadin Chart. Vaadin Chart renders SVG on web. On client side, it is pretty easy to catch dom click events. How do I implement it? I also like to create some small dialog like chart legend to work with chart.

I do appreciate your help.

James

Hi James,

Are you using Vaadin Charts with Vaadin Framework or the web components version of Vaadin Charts?

If it’s for framework you can check a lot of examples with the source code like the following ones:

For the click event bar and point are the same, it’s a point click event in java side.
You also have chart click event like in this example:

Check the demos to see what else can be done with Vaadin Charts and don’t forget there is also documentation available: https://vaadin.com/docs/v8/charts/java-api/charts-basic-use.html

BR