Hello!
I am currently building a dynamic dashboard featuring multiple charts. The primary objective is to enable users to interact with these charts, specifically by clicking on specific chart elements (such as segments of a pie chart). Upon clicking, I aim to implement a filtering mechanism, where the dashboard content adjusts based on the selected chart item.
To achieve this interactivity, my initial plan was to capture the clicked chart item’s data and store it in a variable. Then, I could use this variable to trigger a new API request for the updated data. However, I can’t figure outhow to capture the precise data item that was clicked on the chart.
Has anyone done something like this before and could give me some pointers? I’d really appreciate any help or tips you can share.
Thanks!