I just started using plotly and I'm trying to format markers on my plotly pie chart based on the example here. When I do so, it only changes the marker formatting for one of the markers, not for all of them. This appears to be the case in the example on the plotly website as well. If you follow the link and look at the Styled Pie Chart, only Hydrogen has the white font, while all others have black font.
How can I make all of the markers have the same text formatting?
My code:
trace = go.Pie(labels=labels, values=values, hoverinfo='label+value', textinfo='percent',
textfont=dict(size=20, color='#ffffff'),
marker=dict(line=dict(color='#ffffff', width=2)))
Any help on how I can apply it to all markers would be greatly appreciated.
