Im trying to do a funnel but i can’t seem to find a way to set the width of the funnels bar to be readable because my first numbers are so high. Has anyone found a fix/tips? a way to turn off the x axis and just manually set the bars width it would be awesome.
Also anyone found out how to display the total of the traces in this example?
here’s the code:
import pandas as pd
from plotly import graph_objects as go
fig = go.Figure()
fig.add_trace(go.Funnel(
name='GA4',
orientation='h',
y=['Users', 'Forms Viewed', 'Forms Submitted', 'Salesforce Convertions', 'Account with Opportunities', 'Closed Won Accounts'],
x=[64000, 10000],
textposition="inside",
textinfo="value+percent total"
))
fig.add_trace(go.Funnel(
name='A',
orientation='h',
y=['Forms Submitted', 'Salesforce Convertions', 'Account with Opportunities', 'Closed Won Accounts'],
x=[245, 117, 52, 8],
textposition="inside",
textinfo="value+percent previous"
))
fig.add_trace(go.Funnel(
name='B',
orientation='h',
y=['Forms Submitted', 'Salesforce Convertions', 'Account with Opportunities', 'Closed Won Accounts'],
x=[196, 46, 30, 0],
textposition="inside",
textinfo="value+percent previous"
))
fig.show()
2nd picture would be the ideal