Published
Edited
Nov 21, 2020
Insert cell
Insert cell
vl.markBar()
.data("https://api.spacexdata.com/v3/launches")
.encode(
vl.x().fieldN('launch_year').title('year'),
vl.y().count().title('launches')
)
.width(width/2)
.title('SpaceX Rocket Launches')
.render()
Insert cell
import { vl } from '@vega/vega-lite-api';
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