Published
Edited
Feb 28, 2020
Insert cell
Insert cell
Insert cell
Insert cell
bar = vl.markBar({stroke:"black"})
.width(600)
.height(400)
.data(data)
.encode(
vl.x().fieldN("DAY_OF_WEEK"),
vl.y().count(),
vl.color().fieldN("OFFENSE_DESCRIPTION"),
vl.tooltip().count()
)
.render()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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