Published
Edited
Oct 1, 2022
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
months = d3.utcMonths(utc("1983-01-01"), utc("2017-01-01"))
Insert cell
utc = d3.utcParse("%Y-%m-%d")
Insert cell
YEAR = months[startHISTORY]
Insert cell
END_YEAR = months[HISTORY]
Insert cell
Insert cell
Insert cell
data.map((x) => Object.values(x.evolution_data))
Insert cell
Insert cell
Insert cell
parseShortMonth = d3.utcParse("%Y %b")("1989 JAN")
Insert cell
parseLongMonth = d3.utcParse("%Y %B")("1989 APRIL")
Insert cell
Insert cell
parseNumberMonth = d3.utcParse("%Y %m")
Insert cell
parseNumberMonth("1983 9")
Insert cell
data.filter((each) => {
const check = Object.values(each.evolution_data).find(
(x) => x.rank <= top_earners
);
return check; //? true : false;
})
Insert cell
data
Insert cell
Insert cell
earnings_data_flat.filter((each) => each.year <= YEAR)
Insert cell
Insert cell
Insert cell
import { Scrubber } from "@mbostock/scrubber"
Insert cell
Insert cell
import { Plot } from "@mkfreeman/plot-tooltip"
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