Redo charts when click on plot

Recommended Posts

I have three charts, and one mapwithcountries. The thing i would like to do is when click on some plot(column or bar) in one of my three charts i want to "redo" the others charts(column, bar, donut, map) with the specific data about that clicked plot.

So how could i achieve this? I know there is events for those charts, but i dont know how to render again (or update) those charts with specific clicked plot.

I hope you can help me.

Thanks in advance

Share this post

Link to post
Share on other sites



You can use the "dataPlotClick" API event that gets triggered when a click interaction is made on the chart plots. To update a chart with new dataSource, you need to use "setJSONData() API method invoked on the chart instance of the chart that you want to update.

So, use "setJSONData()" on the chart instance within the "dataPlotClick" event handler function.

Refer to the below sample for an implementation :




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now