Charts

Graphiques : bpm.chart.line, bpm.chart.bar, bpm.chart.area, bpm.chart.scatter, bpm.chart.map, bpm.chart.plotly, bpm.chart.altair, bpm.chart.pyplot.

Les graphiques SVG natifs (line, bar, area, scatter) sont responsives : viewBox et width: 100% permettent l’adaptation au conteneur sur mobile.

Référence API

FonctionBPM
line_chart()bpm.chart.line()
bar_chart()bpm.chart.bar()
area_chart()bpm.chart.area()
scatter_chart()bpm.chart.scatter()
map()bpm.chart.map()
plotly_chart()bpm.chart.plotly()
altair_chart()bpm.chart.altair()
pyplot()bpm.chart.pyplot()

Exemples

import bpm
import pandas as pd
df = pd.DataFrame({"x": [1, 2, 3], "y": [10, 20, 15]})
bpm.chart.line(df)
bpm.chart.bar(df)
bpm.chart.area(df)
bpm.chart.scatter(df)
bpm.chart.map(df_lat_lon)
bpm.chart.plotly(fig)
bpm.chart.altair(chart)
bpm.chart.pyplot(fig)

Catalogue des composants — graphiques et visualisations.

Une question ? Consultez la FAQ et la Ce qu'il reste à faire.