Published
Edited
Feb 28, 2020
Insert cell
Insert cell
Insert cell
bar = vl.markBar({stroke:"black"})
.width(80)
.height(30)
.data(dataFilt)
.columns(6)
.encode(
vl.x().count("OFFENSE_DESCRIPTON").scale({domain:[0,6]}),
vl.y().fieldN("OFFENSE_DESCRIPTION").title("Offense").scale({domain:[days[s]]}),
vl.facet().fieldQ("HOUR"),
vl.color().fieldN("OFFENSE_DESCRIPTION"),
vl.tooltip().count()
)
.resolve({scale:{x:"independent"}})
.render()

Insert cell
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