Published
Edited
Jul 3, 2020
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deposits2019 = data2019.filter(d => +d.LDem > 0 && +d.LDem < 5).length;
Insert cell
candidates2019 = data2019.filter(d => +d.LDem > 0).length;
Insert cell
data = Array.from(new Set(csvData.map(d => d.election))).map(processYearsData).concat([{year: "2019", value: deposits2019, candidates: candidates2019, percentage: deposits2019 / candidates2019}])
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