Plotly Waterfall values are being cut off by xaxis

Values are being cut off by the x axis. Not sure what is causing it. I have tried using textposition=“auto” but i am still running into the same issue. enter image description here

import plotly.graph_objects as go

fig = go.Figure(go.Waterfall(
    name = "20", orientation = "v",
    measure = ["relative", "relative", "total", "relative", "relative", "total"],
    x = ["Sales", "Consulting", "Net revenue", "Purchases", "Other expenses", "Profit before tax"],
    textposition = "outside",
    text = ["1.4", "-0.8", "-0.3", "(-0.3)", "-20", "Total"],
    y = [1.4, -0.8, -0.3, -0.3, 20, 0],
    connector = {"line":{"color":"rgb(63, 63, 63)"}},

        title = "Profit and loss statement 2018",
        showlegend = True,


Hi @muin

I don’t understand why textposition= ‘outside’ is not working in your example, it should show the numbers above the columns. :thinking:

Then use height = 350, # or any number in the go.Layout to manage the size.

hi @Eduardo changing the size hasnt made a huge effect on the way the number are being displayed :pensive:

Hi @muin

Try changing the textposition:

textposition = "inside",

the numbers get really squished with textposition = “inside”

Then the only option it works is change the base:

base = -10,

Before that you need to know what is the minimum value that the series has, and the base will be that minimum plus something: