Click event from donut pie to update a dataframe

Hi,

I have a dataframe used to plot a donut pie.
I want to add clicable events on the donut pie so that when i click a slice the dataframe got updated according to the selected value.
I found this similar idea here but it is in Dash

Any ideas to do the same in streamlit?

Hey Omnia,

Check out this component which might be what you need:

I found it a few years ago while working on my Koffee app:

I believe now you should be able to return click events inherently without using custom components, see this example:

But I’m not sure if this is what you had in mind.

Hope this helps!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.