Year , Store_type , MY_SHOPPING ,TRAN_SPEND
2012, LARGE_STORE , HEALTH CONSCIOUS , 49383.70$
2012 , CONVENIENCE_STORE , CONFIDENT COOKS , 13150.00$
2013 , LARGER_STORE , QUICK&EASY , 98765.00$
2013 , LARGER_STORE , TRADITIONAL , 45734.00$
Question: I want to have a pie chart that represents the year in the middle of the chart and have a label = store_type and display percentage of different categories in MY_SHOPPING column plus the name of that and also the TRAN_SPEND amount in dollar
My code:
fig = px.pie(removed_index_storeformat, values='TRAN_SPEND', names='STORE_TYPE',
hover_data=['MY_SHOPPING '], labels={'MY_SHOPPING ':'shop'})
fig.update_traces(textposition='inside', textinfo='percent+label')
fig.show()


