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()
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()
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
)