.Funnelarea()
The .Funnelarea()
function in Plotly is used to create funnel area charts, which visualize hierarchical data or proportions in a descending or ascending order. Unlike a standard funnel chart, the area of each section represents a quantitative value, making it useful for visualizing sales pipelines, user conversion rates, and process flow analysis.
Syntax
import plotly.graph_objects as go
go.Funnelarea(values=values, text=labels, ...)
values
(list/array): Numerical values determining the area of each section.text
(list, optional): Labels corresponding to each funnel section.
Note: The ellipsis in the syntax (
...
) indicates that there are additional optional parameters beyond those listed here to customize the funnel area charts.
Example
The following example demonstrates a simple funnel area chart representing a sales funnel.
import plotly.graph_objects as gofig = go.Figure(go.Funnelarea(values=[100, 80, 60, 40, 20],text=["Visitors", "Sign-ups", "Trials", "Paid Users", "Retained Users"]))fig.update_layout(title="User Conversion Funnel")fig.show()
The output will be an interactive funnel area chart where each section represents a stage in a hierarchical process, such as a sales funnel or user conversion flow. The size of each section is proportional to its value, making it easy to compare different stages visually.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Python:Plotly on Codecademy
- Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours - Course
Learn Python 3
Learn the basics of Python 3.12, one of the most powerful, versatile, and in-demand programming languages today.With CertificateBeginner Friendly23 hours