Public
Edited
May 19
Insert cell
Insert cell
data = FileAttachment("Colegio.csv").csv({typed: true})
Insert cell
resumenPorLocalidad = d3.rollups(
data,
v => v.length,
d => d.Nombre_localidad
).map(([nombre, cantidad]) => ({ nombre, cantidad }))
Insert cell
Plot.plot({
marginLeft: 100,
marks: [
Plot.barX(resumenPorLocalidad, {y: "nombre", x: "cantidad", fill: "green"}),
Plot.ruleX([0])
]
})
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