We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743b524 commit 58fef66Copy full SHA for 58fef66
doc/python/pie-charts.md
@@ -235,8 +235,10 @@ fig.update_traces(hole=.4, hoverinfo="label+percent+name")
235
fig.update_layout(
236
title_text="Global Emissions 1990-2011",
237
# Add annotations in the center of the donut pies.
238
- annotations=[dict(text='GHG', x=0.18, y=0.5, font_size=20, showarrow=False),
239
- dict(text='CO2', x=0.82, y=0.5, font_size=20, showarrow=False)])
+ annotations=[dict(text='GHG', x=sum(fig.get_subplot(1, 1).x) / 2, y=0.5,
+ font_size=20, showarrow=False, xanchor="center"),
240
+ dict(text='CO2', x=sum(fig.get_subplot(1, 2).x) / 2, y=0.5,
241
+ font_size=20, showarrow=False, xanchor="center")])
242
fig.show()
243
```
244
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments