Public
Edited
Feb 2, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
zoomable_treemap = zoomableTreemapAll(zoomable_data, 1280, 750, colors_topics, "en")
Insert cell
zoomable_treemap_mob = zoomableTreemapAll(zoomable_data, 520, 800, colors_topics, "en")
Insert cell
Insert cell
zoomable_treemap_all_data = zoomableTreemapAll(zoomable_data_all, 1280, 750, colors_topics, "en")
Insert cell
zoomable_treemap_all_data_mob = zoomableTreemapAll(zoomable_data_all, 520, 800, colors_topics, "en")
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
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
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
PolarizationLinechart = PolarizationPopulismPlotAllSpeeches(pol_button_pol_or_pop_linechart, index_pol_leaders_eng, speeches_list_eng, data_pol_or_pop_all_github, type_button_linechart_all, "en")
Insert cell
Insert cell
data_pol_or_pop_all_github = type_button_linechart_all == "Moderate/High Polarization" ? await fetch(gh_path_aggregate+index_pol_leaders_eng[pol_button_pol_or_pop_linechart]+"/polarization-definition_sequence.json").then((response) => response.json()) : await fetch(gh_path_aggregate+index_pol_leaders_eng[pol_button_pol_or_pop_linechart]+"/populism-definition_sequence.json").then((response) => response.json());
Insert cell
Insert cell
Insert cell
Insert cell
HeatMapChartFiltered = HeatMapSentiment(pol_button_heatmap, heatmapData_filtered, ["Migration", "National security"], speeches_list_eng, index_pol_leaders_eng)
Insert cell
Insert cell
Insert cell
speeches_list_eng[index_pol_leaders_eng[pol_button_heatmap]].map(el => el[0]).reverse()
Insert cell
heatmapData = heatmap_data(index_pol_leaders_eng[pol_button_heatmap], "en")
Insert cell
heatmapDataToChange = heatmap_data(index_pol_leaders_eng[pol_button_heatmap], "en");
Insert cell
heatmapData_filtered = heatmapDataToChange.filter(el => el['topic'] == "Migration" || el['topic'] == "National security")
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
</head>
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