Plot

Plots contain visualisations from common Python libraries, such as Bokeh, Matplotlib, and Altair.

Creating a Plot

The plot component takes supported visualisation. Datapane currently supports Altair, Bokeh, and Matplotlib. If you would like support for another visualiation library, please let us know.

import pandas as pd
import datapane as dp
import altair as alt
source = pd.DataFrame({
'a': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
'b': [28, 55, 43, 91, 81, 53, 19, 87, 52]
})
p = alt.Chart(source).mark_bar().encode(
x='a',
y='b'
)
dp.Plot.create(p)

Viewing Plots

Plots are displayed inline in your report. If you have an interactive plot, users will be able to use it interactively in your report.