bpm.linechart
Graphique en courbes (ligne). Données : liste de { x, y }.
bpm.linechart(data=[{"x": "Jan", "y": 10}, {"x": "Fév", "y": 20}, ...])| Prop | Type | Défaut |
|---|---|---|
| data | Array<{ x: string | number, y: number }> | — |
| width | number | 400 |
| height | number | 200 |
| color | string | var(--bpm-accent-cyan) |
Exemple
bpm.linechart("Jan,10;Fév,20;Mar,15;Avr,28;Mai,22") # format sandbox