Composants → bpm.scatterchart

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€).

Graphiques
bpm.scatterchart(data=[{"x": 28, "y": 132}, {"x": 34, "y": 158}, ..., {"x": 130, "y": 548}])  # prix (k€) vs surface (m²)
PropTypeDéfaut
dataArray<{ x: number, y: number }>
widthnumber400
heightnumber200
colorstringvar(--bpm-accent-cyan)
radiusnumber4

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€)