Quantcast
Channel: ЁЯОЫя╕П Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271
тЖз

How to modify the size with graph_objects

$
0
0

@salascorp wrote:

Hello

I am triying to modify the size of my figure. I want to do that beacuse I can not see some labels in a graph.

.
import plotly.graph_objects as go

fig = go.Figure(go.Bar(
            x=dfEstrato.Estrato,
            y=dfEstrato.Part,
            text=dfEstrato.Part,
            texttemplate = "%{y}%",              
            textposition = "outside",
            orientation='v'))

fig.update_traces(marker_color='#000080')
fig.update_layout(title_text='3. Estrato Socioeconomico',yaxis = go.YAxis(showticklabels=False))

fig.show()

This is the datafreme dfEstrato.

image

Thanks

Posts: 2

Participants: 2

Read full topic

тЖз

Viewing all articles
Browse latest Browse all 6271

Trending Articles