Simple Area Chart#

A filled area chart representing values over a sequence. This example uses simple numeric data to show how area plots work in hvPlot.

import pandas as pd
import hvplot.pandas  # noqa

df = pd.DataFrame({
    'x': range(10),
    'y': [3, 4, 6, 8, 7, 6, 4, 5, 6, 7]
})

df.hvplot.area(x='x', y='y', title='Simple Area Chart (Bokeh)')
import pandas as pd
import hvplot.pandas  # noqa
hvplot.extension('matplotlib')

df = pd.DataFrame({
    'x': range(10),
    'y': [3, 4, 6, 8, 7, 6, 4, 5, 6, 7]
})

df.hvplot.area(x='x', y='y', title='Simple Area Chart (Matplotlib)')
This web page was generated from a Jupyter notebook and not all interactivity will work on this website.