Updating a grid by clicking on a bar in a barchart

Hi there,

I'm wondering if it's possible to have a DataGrid update after clicking on the bar of a barchart?

Background
For e.g a barchart shows average temperatures per month of the year. Under the chart is a DataGrid that shows data about the particular month such as highest and lowest, rainfall etc. When I click on the month series in the barchart, the DataGrid should update.

On the chart component, is there an event like onSeriesClick or something that I can use? The updating of the DataGrid I can do

Thank You.

Charles  

2 Replies 1 reply marked as answer

CT Charles Trent July 2, 2020 12:30 PM UTC

Found what I was looking for.

event: pointClick(args)
What I used arg in the args: args.point.x //This is the series name. In the case of the Pie chart, this is the slice "name"

Hope someone finds this usesful. 

Marked as answer

BP Baby Palanidurai Syncfusion Team July 3, 2020 08:59 AM UTC

Hi Charles, 

Most welcome. Please revert us, if you have any other queries. We are always happy to assist you. 

Regards, 
Baby. 


Loader.
Up arrow icon