-1

How can i increase the size of the below pie chart? It seems small size is due to the scale but i'm note sure.

import plotly.graph_objects as go

fig = go.Figure(data=[go.Pie(labels=df['index'], values=df['label'])])
fig.show()

enter image description here

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
Seemant Singh
  • 142
  • 1
  • 7

1 Answers1

0

Try to add the below code before fig.show() and change the value of width or height as you wish for.

fig.update_layout(
    autosize=False,
    width=500,
    height=500
)
Abhi
  • 1,080
  • 1
  • 7
  • 21