Public
Edited
May 3, 2023
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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
async function thaMeterPolLeaders() {
let data_github_tha_meter = {};
for (let i=0; i<Object.keys(gh_list_of_speeches).length; i++){
let politician = Object.keys(gh_list_of_speeches)[i];
let data_fetched_pol_leader = null;
data_github_tha_meter[politician] = [];
for (let j=0; j<gh_list_of_speeches[Object.keys(gh_list_of_speeches)[i]].length; j++){
data_fetched_pol_leader = await fetch(gh_path+politician+"/"+gh_list_of_speeches[politician][j][1]+"/analysis/visuals/tha_meter.json").then((response) => response.json());
data_github_tha_meter[politician].push(data_fetched_pol_leader.freq);
}
}
return data_github_tha_meter;
}
Insert cell
data_tha_meter_all = thaMeterPolLeaders()
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