Public
Edited
Jun 4
Insert cell
Insert cell
import {d3} from "@observablehq/stdlib"
Insert cell
data = FileAttachment("FINAL_jobs_2020_2024_comparison_table_true.csv").csv()
Insert cell
years = [2020, 2021, 2022, 2023, 2024]
Insert cell
viewof selectedYear = Inputs.select(years, {label: "Select Year", value: 2024})
Insert cell
previousYear = (() => {
const index = years.indexOf(selectedYear);
return index > 0 ? years[index - 1] : null;
})()
Insert cell
selectedYearLines = previousYear
? top15TracedData
.filter(d => d.year === selectedYear || d.year === previousYear)
: []
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