Public
Edited
May 9, 2023
Fork of Untitled
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
years = {
var years=[];
for (var i = 0; i < series1.length; i ++){
years.push(series1[i]["Less than primary, primary and lower secondary education (levels 0-2)"])
}
return years;
}
Insert cell
series1 = FileAttachment("Upper secondary and post-secondary non-tertiary education@1.csv").csv({typed: true})
Insert cell
vals = {
var selectedCountry = []
var canada = []
var vals = []
var row = 0;
for (var i = 0; i < series1.length; i ++){
var k = series1[i]["Year"];
selectedCountry.push({[k]:series1[i][currentCategory]});
canada.push({[k]:series1[i]["Canada"]});

vals.push({country:currentCategory,year:k,value:series1[i][currentCategory]});
vals.push({country:"Canada",year:k,value:series1[i]["Canada"]});
}
return vals;
}
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