Simple Line Plot#
A basic line chart showing a trend over time. This example demonstrates the default line plotting behavior in hvPlot.
import pandas as pd
import hvplot.pandas # noqa
df = pd.DataFrame({
'day': list(range(1, 8)),
'value': [5, 7, 6, 8, 7, 9, 10]
})
df.hvplot.line(x='day', y='value', title='Simple Line Plot (Bokeh)')
import pandas as pd
import hvplot.pandas # noqa
hvplot.extension('matplotlib')
df = pd.DataFrame({
'day': list(range(1, 8)),
'value': [5, 7, 6, 8, 7, 9, 10]
})
df.hvplot.line(x='day', y='value', title='Simple Line Plot (Matplotlib)')
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.