{"id":133,"date":"2023-08-18T09:12:51","date_gmt":"2023-08-18T09:12:51","guid":{"rendered":"https:\/\/editor.mediahack.co.za\/databites\/?p=133"},"modified":"2025-11-17T17:41:36","modified_gmt":"2025-11-17T17:41:36","slug":"how-to-make-a-zimbabwean-election-map","status":"publish","type":"post","link":"https:\/\/outliereditor.co.za\/index.php\/2023\/08\/18\/how-to-make-a-zimbabwean-election-map\/","title":{"rendered":"How to make a Zimbabwean elections map"},"content":{"rendered":"\n<p>Zimbabwe heads to the polls on 23 August 2023. In this guide, we explain how to find data on earlier Zimbabwean elections and how to map it.&nbsp;<\/p>\n\n\n\n<p>This is part of a series of election maps on the continent. Our previous guides covered <a href=\"https:\/\/inside.mediahack.co.za\/how-to-make-a-nigerian-election-map-a-simple-guide-b5a6cb4a5e95\" target=\"_blank\" rel=\"noreferrer noopener\">Nigeria<\/a> and <a href=\"https:\/\/inside.mediahack.co.za\/a-quick-guide-for-making-an-election-map-fcc8f6abb37d\" target=\"_blank\" rel=\"noreferrer noopener\">Kenya<\/a>.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Find your data and prep it<\/h2>\n\n\n\n<p>The <a href=\"http:\/\/www.zec.org.zw\/\" target=\"_blank\" rel=\"noreferrer noopener\">Zimbabwe Electoral Commission<\/a> (ZEC) has data on registered voters for 2023 and the election results for the 2013 and 2018 elections in its <a href=\"https:\/\/www.zec.org.zw\/download-category\/2018-presidential-elections-results\/\" target=\"_blank\" rel=\"noreferrer noopener\">Resource Centre<\/a>.<\/p>\n\n\n\n<p>The ZEC supplied the data by province, which could be downloaded as an Excel spreadsheet. But the data was locked within a spreadsheet \u2013 preventing us from working with it in Excel. To remedy this, we uploaded the spreadsheets into Google Drive and opened them as Google Sheets.<\/p>\n\n\n\n<p>The data we wanted was spread across 10 spreadsheets, so we created a new spreadsheet to consolidate the information we wanted, which was:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The total voters per candidate per province<\/li>\n\n\n\n<li>The total percentage of votes per candidate per province<\/li>\n<\/ul>\n\n\n\n<p>Why did we want this data? We wanted to see which provinces voted for the Zanu-PF candidate and the opposition.<\/p>\n\n\n\n<p>To make it easier to visualise our data, we added in the provincial codes for each of Zimbabwe\u2019s 10 states. We also added links to the original sources for each row of data to make it easier to double-check our work.<\/p>\n\n\n\n<p>Once we had done this, we sorted the spreadsheet on the column to see which parties received the most votes in each province. Using the sorted data, we made a map.<\/p>\n\n\n\n<p>In the 2018 election, Zanu-PF won 50.7% of the vote. The Movement for Democratic Change Alliance won 44.4%.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/spreadsheet-2-1024x1024.png\" alt=\"\" class=\"wp-image-147\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Map your data<\/h2>\n\n\n\n<p>There are two free mapping tools to use to map your data: <a href=\"https:\/\/www.datawrapper.de\/\" target=\"_blank\" rel=\"noreferrer noopener\">Datawrapper<\/a> and <a href=\"https:\/\/flourish.studio\/\" target=\"_blank\" rel=\"noreferrer noopener\">Flourish<\/a>. For this example, we are going to use Flourish.&nbsp;<\/p>\n\n\n\n<p>Flourish doesn\u2019t have a map for Zimbabwe, so we are going to have to add one.&nbsp;<\/p>\n\n\n\n<p>Maps are made up of several datasets. To find all of them go to&nbsp; the <a href=\"https:\/\/data.humdata.org\/dataset\/cod-ab-zwe\" target=\"_blank\" rel=\"noreferrer noopener\">Humanitarian Data Exchange<\/a>.<\/p>\n\n\n\n<p>Then download the zipped file: zwe_admbnda_adm1_zimstat_ocha_20180911.zipSHP.<\/p>\n\n\n\n<p>The reason you download this file and not others is because it contains the boundary lines of Zimbabwe\u2019s provinces. We know this because of the description under the file name.<\/p>\n\n\n\n<p>Once you have downloaded and unzipped the file, open the data into <a href=\"https:\/\/mapshaper.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mapshaper<\/a> to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Confirm you have the correct map<\/li>\n\n\n\n<li>Simplify the map lines&nbsp;<\/li>\n\n\n\n<li>Download the map as a GeoJSON file for Flourish<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/2-1024x1024.png\" alt=\"\" class=\"wp-image-148\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/3-1-1024x1024.png\" alt=\"\" class=\"wp-image-157\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s map it on Flourish!<\/h2>\n\n\n\n<p>Start by uploading your map data onto Flourish in \u2018regions geometry\u2019 under the \u2018Data\u2019 sub-head.\u00a0<\/p>\n\n\n\n<p>Then fill out the following bits of information in the right-hand panel of \u2018regions geometry\u2019:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Geometry: This is the column with the map picture in it<\/li>\n\n\n\n<li>ID: This is the column that will correspond to the dataset you want to show\n<ul class=\"wp-block-list\">\n<li>For this example we used the provincial codes to join the two datasets.&nbsp;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Then select the \u2018regions\u2019 tab in \u2018Data\u2019 and fill out the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ID \u2013 to connect the data with \u2018regions geometry\u2019<\/li>\n\n\n\n<li>Name \u2013 to indicate the province or metro<\/li>\n\n\n\n<li>Colour by \u2013 to visualise the data of which region voted for which candidate in the 2018 election<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/4-1-1024x1024.png\" alt=\"\" class=\"wp-image-154\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Formatting your map\u00a0<\/h2>\n\n\n\n<p>Your map may appear very small at first when you look at it in \u2018preview\u2019. The reason is that Flourish defaults to a \u2018World view\u2019. Change the \u2018Bounds\u2019 from \u2018World view\u2019 to \u2018Auto\u2019.<\/p>\n\n\n\n<p>If your map appears squished, it could be because of the choice of projection, which you can adjust to choose a map projection that looks more familiar to you.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/5-2-1024x1024.png\" alt=\"\" class=\"wp-image-159\" \/><\/figure>\n\n\n\n<p>Here is what your map could look like in the end if you edited it further in the design interface <a href=\"http:\/\/www.figma.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Figma<\/a>.<\/p>\n\n\n\n<p>To work on Figma, we downloaded the chart as a .svg file.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/editor.mediahack.co.za\/databites\/wp-content\/uploads\/sites\/3\/2023\/08\/2023-08-17-losing-ground-zim-elections-\u2013-Just-Zanu-PF-1-1024x1024.png\" alt=\"\" class=\"wp-image-139\" width=\"450\" height=\"450\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Notebook<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Read more: <a href=\"https:\/\/inside.mediahack.co.za\/how-to-make-custom-maps-even-if-you-dont-know-how-to-code-af3274bfe0a4\">How to make custom maps \u2014 even if you don\u2019t know how to code<\/a><\/li>\n\n\n\n<li>Read more: <a href=\"https:\/\/inside.mediahack.co.za\/making-bar-charts-with-datawrapper-75d9a9b82f6b\">Making bar charts with Datawrapper<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the latest in our series on creating African election maps, we explain how to find data on Zimbabwean elections and how to map it.<\/p>\n","protected":false},"author":2,"featured_media":86684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[448,1387],"tags":[360,154,471,454,449,451,472],"newsletter-post":[],"site":[],"class_list":["post-133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-the-outlier","tag-data-visualisation","tag-elections","tag-flourish","tag-google-sheets","tag-how-to","tag-maps","tag-mapshaper"],"acf":{"big_number":null,"big_number_caption":null,"big_number_link":null,"big_number_background":null,"big_number_text_colour":null,"big_number_icon":null,"big_number_wide":null,"featured_chart":null,"flourish_chart_id":null,"flourish_sub_title":null,"flourish_chart_width":null,"is_newsletter_post":null,"post_style":null,"show_on_front":null,"link_through":null,"chart_url":null,"background_colour":null,"text_colour":null},"_links":{"self":[{"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":1,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":86685,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions\/86685"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/media\/86684"}],"wp:attachment":[{"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=133"},{"taxonomy":"newsletter-post","embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/newsletter-post?post=133"},{"taxonomy":"site","embeddable":true,"href":"https:\/\/outliereditor.co.za\/index.php\/wp-json\/wp\/v2\/site?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}