Area#

An area chart shows a filled region between a line and the x-axis.

gufo.chart(df).area("x", "y").show()

Stacked area (wide-form)#

Pass a list of column names for a stacked area chart — no reshaping needed.

gufo.chart(df).area("x", ["series_a", "series_b"]).show()

Color and transparency#

# Literal color with custom alpha
gufo.chart(df).area("x", "y", color="steelblue", alpha=0.3).show()

# Grouped by category
gufo.chart(df).area("x", "y", color="category").show()

Error band#

Pass y_error to draw a lighter fill band around the top edge of the area.

gufo.chart(df).area("x", "y", y_error="y_std").show()

API reference#

See gufo.core.chart.Chart.area().