bpm.scatterchart
Graphique en nuage de points. Données : liste de { x, y } (nombres). Démo : prix vs surface de 20 annonces immobilières (m², k€).
bpm.scatterchart(data=[{"x": 28, "y": 132}, {"x": 34, "y": 158}, ..., {"x": 130, "y": 548}]) # prix (k€) vs surface (m²)| Prop | Type | Défaut |
|---|---|---|
| data | Array<{ x: number, y: number }> | — |
| width | number | 400 |
| height | number | 200 |
| color | string | var(--bpm-accent-cyan) |
| radius | number | 4 |
Exemple
bpm.scatterchart(data=[{"x": 28, "y": 132}, {"x": 52, "y": 224}, {"x": 85, "y": 362}, {"x": 130, "y": 548}]) # annonces immobilières : surface (m²) → prix (k€)