Published
Edited
Sep 25, 2019
Insert cell
Insert cell
winBAR2 = vl.markBar({stroke:"black",clip:true,height:"25",opacity:0.8,orient:"horizontal"})
.columns(5)
.width(200)
.height(200)
.title("Combined Wins per Year of American League East Teams")
.data(ALE)
.encode(
vl.y().fieldQ("yearID").axis({format:".0f"}).title("Year").scale({domain:[s,s+5]}),
vl.x().fieldQ("W").stack("zero").title("Wins"),
vl.color().fieldN("name").title("Teams"),
)
.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