How to create an area chart

(Stacked) Area charts are great to show how a total and their shares developed over time. Think about it as a combination of a line chart (change over time) and a column chart (distributions & comparisons). If you're not sure if an area chart is the best choice for your data, visit our article "What to consider when creating area charts". 

This tutorial will guide you in navigating your way towards creating a beautiful and fully responsive chart with Datawrapper. The dataset we will be using takes a closer look at carbon emissions between 1850 and 2014.

1

Preparing and importing the data

To create an area chart, your dataset needs to fulfil some prerequisites. These include:

  • One header row containing descriptive labels ("Year", "Liquid fuel", etc.)
  • One column with dates or timestamps.
    This will define the horizontal axis. In our case, we plot years along the horizontal axis.
  • At least one column containing numeric values.
    The values in these columns will define the height of the areas for each year.

That's part of the data we used to create the chart at the top of the page. You can find and copy the whole dataset in our data samples in step 1: Upload Data (or download it later in the final step by clicking on ''get the data'').

Year Liquid fuel Solid fuel Gas fuel Cement production Gas flaring
2010 3107 3812 1696 446 67
2011 3134 4055 1756 494 64
2012 3200 4106 1783 519 65
2013 3220 4126 1806 554 68
2014 3280 4117 1823 568 68

Source: Carbon Dioxide Information Analysis Center

Once your dataset is in order, create a new chart by going to our homepage and clicking on "Start creating". In Step 1: Upload, copy & paste your dataset, upload it as a .CSV or an Excel sheet. If you want to create the chart at the top of this Academy article, "Select a sample dataset" at the bottom of the page and choose the dataset "Global CO2 Emissions". After importing the data, the textfield on the right will look something 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 the ''Visualize'' tab, click on the "Area chart" symbol in the grid of available chart types:

You will now see an area chart, without a title, descriptions or customized colors. Next, we want to further refine, annotate & define this chart.  We cover these options for the area chart in a separate tutorial found here.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us