I am using the below code to generate a pie chart.
What is required is that when one clicks on a sector of the chart, print the name where
the mouse is clicked?
import plotly.express as px
df = px.data.tips()
fig = px.sunburst(df, path=['day', 'sex'],
values='total_bill')
fig.show()
this is a sample code. But it explains the requirement. Hope I have explained my self clearly.
Thank you