Skip to content
masterclass Buddy

Plotly · Function

px.area

px.area creates stacked area charts from tabular data. Use color and line_group to define categories and areas, or use Scatter for lower-level fill control.

Last updated

Since
5.7 for area-chart pattern fills; 5.20 for Scatter fill grad

Syntax

px.area(data_frame=None, x=None, y=None, color=None, line_group=None, pattern_shape=None, pattern_shape_sequence=None, pattern_shape_map=None, ...)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • plotly.express
  • go.Scatter
  • fill
  • stackgroup
  • pattern_shape
  • pattern_shape_sequence
  • pattern_shape_map
  • fillgradient

Source: Filled area plots in Python. Checked 2026-11-03.