Public
Edited
Jun 14, 2023
Insert cell
Insert cell
athletes = FileAttachment("athletes.json").json()
Insert cell
athletes
X
weight
Y
Color
#65a7ff
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
x: { label: "poids (Kg)" },
y: { grid: true, label: "Effectifs d'athlètes" },
marks: [
Plot.rectY(athletes, Plot.binX({y: "count"}, {x: "weight", thresholds: 10, fill: "#65a7ff", tip: true}))
]
})
Insert cell
viewof nbClasses = Inputs.range([5, 100], {label: "Nombre de classes", step: 1})
Insert cell
viewof sex = Inputs.radio(["male", "female"], {label: "Sexe", value: "male"})
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