Published
Edited
Sep 20, 2019
Insert cell
Insert cell
vl.markBar()
.height(200)
.width(200)
.data(data)
.transform(
vl.groupby("playerID").aggregate(vl.sum("HR").as("careerHR"))
)
.encode(
vl.x().fieldN("playerID").sort({field:"careerHR",order:"descending"}),
vl.y().fieldQ("careerHR")
)
.render()
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