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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
categories_perc = topics_percentage_categories(pol_button_treemap, speech_button_treemap, list_treemap_perc_calc, "en")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
speedChart_mitsotakis = createSpeedChart("Mitsotakis",speech_button_speedometer_mitsotakis, "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
// colorScale = d3.scaleOrdinal(
// [...new Set(["No/Low "+ type_button_fraction, "Moderate "+ type_button_fraction, "High/Severe "+ type_button_fraction])],
// ["#e2e9e9", "#f7eab7", "#d35f3c"]
// )
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
// lineColorScale = ({
// Mitsotakis: "#0e3354",
// Velopoulos: "#75b9be",
// Koutsoumpas: "#7a2608",
// Androulakis: "#768948",
// Tsipras: "#af370b",
// Varoufakis: "#cc9ea6"
// })
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
stackedBarChart = stackedChartSentiment(labeled_my_data, sumTopicsSentiment(data_stacked_github), "en")
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_test, data_pol_or_pop_all_github, type_button_linechart_all, "en")
Insert cell
Insert cell
PolarizationLinechart_wc= PolarizationPopulismPlotAllSpeeches(pol_button_pol_or_pop_linechart, index_pol_leaders_eng, speeches_list_test, data_pol_or_pop_all_wc_github, type_button_linechart_all, "en")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
HeatMapChart = HeatMapSentiment(pol_button_heatmap, heatmapData, topicsList, speeches_list_test, index_pol_leaders_eng)
Insert cell
HeatMapChartFiltered = HeatMapSentiment(pol_button_heatmap, heatmapData_filtered, ["Migration", "National security"], speeches_list_test, index_pol_leaders_eng)
Insert cell
Insert cell
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
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