How to create an election donut

The election donut chart is a good choice to show shares of seats in a legislative body. You can show what parties have been elected, how many parties there are, and how they compare to each other. This chart type is based on the donut chart, however, it represents absolute values rather than 100%. With Datawrapper you have the option to select the exact colors for the respective parties. 

Some extra information: Normally, pie charts as well as donut and election donuts should only contain a limited number of values and sections. Some suggest not more than five, some not more than three or even only two. The reason is that it becomes very difficult for the viewer to compare the values. Beyond five sections it is always better and more effective to use either a bar or column chart. 

The election chart is an exception. Is it a commonly used as a visualization for parliaments. And the general rule regarding the number of sections has to consider that in many countries the number of parties being elected is rising. Simply remember this - should the number of parties make this chart type hard to read, then choose a bar chart as an alternative.

Here is our sample chart. We walk you through the steps how to prepare the data 

1

Preparing and importing the data

If you want to create this chart type, your data needs to be in a certain format. You'll need:

  • One header row containing descriptive labels ("Party", "Seats", etc.)
  • One column with party names.
  • One column containing numeric values. The values in this column will define the size of the election donut segment. There will be as many segments as they are rows in the data. 

Here's the data we used to create the chart at the top of the page:

Group Seats

GUE/NGL 51
S&D 189
Verts/ALE 52
ALDE 68
PPE 219
ECR 73
EFDD 43
ENF 35
NI 21

Source: European Parliament, 2018

Once you prepared your data, create a new chart in Datawrapper. You can do so by going to our homepage and clicking on "Create a chart". In Step 1: Upload, copy & paste your dataset, upload it as a .csv or an Excel sheet. It will look like this:

Click "Proceed" at the bottom right to go to the next step: 


2

Check & Describe

In the second step, you can check if your dataset was imported correctly and make changes to it - if necessary. If you did not upload a header row, you have to untick "First row as label" to avoid losing your first row of data. Always remember to do this if you don't have descriptive row and column headers.

In step 2, your data looks like this. You can see that Datawrapper correctly recognized your numbers as numbers (and not as text or dates) because they are colored in blue and are right-alined. To learn more about the Datawrapper's automatic recognition of data formats, visit this article.

Click on "Proceed" at the bottom left to go to Step 3: Visualize:

3

Visualize

In this step, you see a first chart. It's probably a line chart. We want to change that. To do so, click on the "Election Donut" symbol in the grid of available chart types:

You will now see an election donut without a title, descriptions or customized colors. Maybe you want to further refine, annotate & define this chart. We cover this in a separate short tutorial found here.

Still need help? Contact Us Contact Us