Public
Edited
Jun 9, 2023
1 fork
Insert cell
Insert cell
loyers = FileAttachment("loyers.json").json()
Insert cell
Insert cell
Plot.plot({
x: { label: "Loyer par m²" },
y: { grid: true, label: "Nombre de loyers étudiés" },
marks: [
Plot.rectY(loyers, Plot.binX({y: "sum"}, {x: "loypredm2", y: "nbobs_com", thresholds: 70, fill: "tomato", tip: true}))
]
})
Insert cell
Plot.plot({
x: { label: "Régions", type: "band" },
y: { grid: true, label: "Nombre de loyers étudiés" },
color: {},
marks: [
Plot.barY(
loyers,
Plot.groupX(
{ y: "sum" },
{ x: "REG", y: "nbobs_com", fill: "tomato", sort: {x: "y", reverse: true}, tip: true }
)
),
Plot.ruleY([0])
]
})
Insert cell
loyers
X
TYPPRED
Y
Color
#9d5bf3
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more