Show progressive customer or user drop-off
Conversion analysis
Plotly · Class
go.Funnel is a Plotly graph-object trace for displaying process stages as length-encoded bars. It supports both part-to-whole and drop-off funnel representations.
go.Funnel creates a length-encoded funnel trace from ordered stages and their values. Supply stage labels through y and corresponding measurements through x; optional trace attributes control text, orientation, grouping, and appearance.
go.Funnel(arg=None, alignmentgroup=None, cliponaxis=None, connector=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, metasrc=None, name=None, offsetgroup=None, opacity=None, orientation=None, outsidetextfont=None, selectedpoints=None, showlegend=None, stream=None, text=None, textfont=None, textinfo=None, textposition=None, texttemplate=None, uid=None, uirevision=None, values=None, value=None, visible=None, width=None, x=None, xaxis=None, xsrc=None, y=None, yaxis=None, ysrc=None)A Funnel trace object.
go.Funnel is added as a trace to a Plotly figure.funnelarea instead when an area-based funnel visualization better matches the data.import plotly.graph_objects as go
fig = go.Figure(go.Funnel(
y=["Website visit", "Downloads", "Potential customers", "Invoice sent"],
x=[39, 27.4, 20.6, 11],
textinfo="value+percent initial"
))
fig.show()Creates a funnel trace with stage labels on the y-axis, stage values on the x-axis, and annotations showing each value plus its percentage of the initial stage.
Conversion analysis
Part-to-whole reporting
Process monitoring
go.Funnel represent?go.Funnel is a graph-object trace for visualizing process stages with length-encoded bars. A typical trace maps stage names to y and measurements to x, then places it in a go.Figure.
Follow-up: How can the displayed annotations be configured? Set attributes such as textinfo, textposition, or texttemplate on the trace.
The trace supports both part-to-whole and drop-off interpretations. In the first, an item appears in one stage; in the second, it appears in each stage it traversed.
Follow-up: When would another trace type be preferable? Use funnelarea when an area-based representation is more suitable.
Use x for the numeric stage values and y for the ordered stage labels in the standard vertical example. The resulting trace can be passed directly to go.Figure.
Follow-up: How could multiple groups be represented? Add multiple funnel traces, each with its own name, stage labels, and values.
plotly.graph_objects.Funnelplotly.graph_objects.funnel.Connectorplotly.graph_objects.Funnelarea