Data Viz Done Right

August 12, 2016

The Data School Gym - Population Pyramids

9 comments

Today at the Data School, Amanda Patist was giving an Alteryx demo and she used worldwide population data. That got me thinking about population pyramids; I’ve always wanted to build one. When I create this, it required a few tricks to get it just right. So I thought I’d post it as a Data School Gym challenge.

Think you can rebuild it? You can download the XLS or the TDE and give it a go.

The small line chart show the % females and % males. The big chart shows the population. Post a link with your solution before you download mine.

Good luck!

Ignore the gray lines that are going across the viz. That’s a bug in Tableau 10.

9 comments :

  1. Hi Andy,

    Thanks for this new challenge. Here is my homework:
    https://public.tableau.com/profile/gr.gory.escallier#!/vizhome/DataSchoolGym-PopulationPyramids/Populationchanges

    One thing however, I didn't have time to found how to have Male and Female populations at the same time in the tooltip. I'll find it out later this week.

    ReplyDelete
    Replies
    1. Great work Gregory!! The only difference is that mine is an area chart.

      Delete
    2. Oh, right. I wondered how you managed to have such smooth lines. It's definitely prettier the way you did.

      Delete
  2. The Viz wasn't too bad, but the tooltips took me a few to figure out. Thanks for the data!

    https://public.tableau.com/profile/jason.cantrell#!/vizhome/PopulationChangeoverTime/Dashboard1

    ReplyDelete
    Replies
    1. Nice work Jason! Only thing I see that is different is the placement of the male/female labels on the line chart, but that's very minor. Glad you're enjoying this!

      Delete
    2. I couldn't figure out how to make enough space for the labels in front of the lines. How did you pull that off?

      Delete
    3. You have to edit the axis and fix the starting year to about 10 years less. I played around with the year to start the axis until I got it just right.

      Delete
    4. Right. That makes sense. Thanks for the Viz and the feedback!

      Delete
    5. My pleasure! I'm happy you're taking advantage of these and learning.

      Delete