Unlisted
Edited
Apr 26, 2023
1 fork
Insert cell
Insert cell
Plot
.barY(timeseries, {x: "year", y: "population"}) // 🌶️
.plot({x: {tickFormat: ""}})
Insert cell
Plot
.rectY(timeseries, {x: "year", y: "population", interval: 1})
.plot({x: {tickFormat: ""}})
Insert cell
Plot
.barY(timeseries, {x: "year", y: "population"})
.plot({x: {tickFormat: "", interval: 1}})
Insert cell
timeseries = [
{year: 2014, population: 7295.290765},
{year: 2015, population: 7379.797139},
{year: 2016, population: 7464.022049},
{year: 2017, population: 7547.858925},
{year: 2019, population: 7713.468100},
{year: 2020, population: 7794.798739}
]
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