Time-Series Area Chart#
A filled area chart to visualize how values accumulate or change over time. This example uses a simple time-indexed dataset to show cumulative trends.
import pandas as pd
import numpy as np
import hvplot.pandas # noqa
np.random.seed(0)
dates = pd.date_range("2024-01-01", periods=30, freq="D")
df = pd.DataFrame({'value': np.cumsum(np.random.randn(30))}, index=dates)
df.hvplot.area(title="Time-Series Area Chart (Bokeh)", ylabel="Cumulative Value")
import pandas as pd
import numpy as np
import hvplot.pandas # noqa
hvplot.extension('matplotlib')
np.random.seed(0)
dates = pd.date_range("2024-01-01", periods=30, freq="D")
df = pd.DataFrame({'value': np.cumsum(np.random.randn(30))}, index=dates)
df.hvplot.area(title="Time-Series Area Chart (Matplotlib)", ylabel="Cumulative Value")
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.