bpm.altairChart
Graphique Altair / Vega-Lite.
Graphique Altair / Vega-Lite. Passez spec (JSON) ou iframeSrc après avoir intégré vega-embed dans votre app.
Python
bpm.altairChart(spec=vega_spec)| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
spec | Record<string, unknown> | — | Non | Spécification Vega-Lite / Altair (JSON). |
iframeSrc | string | — | Non | URL d'un fichier JSON ou d'une vue compilée. |
width | number | string | 100% | Non | Largeur. |
height | number | string | 400 | Non | Hauteur. |
className | string | — | Non | Classes CSS. |
Exemples
bpm.altairChart(spec=vega_spec)bpm.altairChart(spec=chart.to_dict())bpm.altairChart(iframeSrc="/charts/altair-view.json")bpm.altairChart(spec=spec, width=600, height=300)