Public
Edited
May 14
Insert cell
Insert cell
data = FileAttachment("Colegio.csv").csv({typed: true})
Insert cell
resumenPorEntidad = d3.rollups(
data,
v => v.length,
d => d.Entidad
).map(([entidad, cantidad]) => ({ entidad, cantidad }))
Insert cell
Plot.plot({
marks: [
Plot.barY(resumenPorEntidad, {x: "entidad", y: "cantidad", fill: "steelblue"}),
Plot.ruleY([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