Hiding % labels in px.pie chart python

ok, i have found it. it just needs to be fig_pie.update_traces(textinfo='none'), but it hides all. now i wonder if there is a way to CODITIONALY hide the % labels.

lets say i have a pie chart like this
pie hide
and i would like to hide all that does not fit into the the pie, or i want to leave only the first ten biggest… or something like that. just whatever based on a contiditon.

how would i do that?

2 Likes