26.2.12

How to Construct a Population Pyramid Style of Chart Using Excel 2007

The population pyramid is a very effective way of presenting data in situations in addition to reporting populations. The following example shows how true this is when I compare some basic data for British Airways and easyJet:

Image

This is a very effective form of presentation, don’t you think? It is! After all, there are times when you may well want to compare this year with last, one company with another, male with female … and a table of data or even a line or ordinary bar chart just aren’t effective enough. 

How did I prepare that chart, then, using Excel? What follows is all you have to do!

Firstly, derive, find or grab your data. As you are working along with this example, just copy and paste the following into a blank Excel work sheet:

Image

To begin with, make all easyJet values NEGATIVE. Just put a minus sign in front of them all. It will become obvious why we do this shortly.

Then select these data and press the F11 key and Excel will then draw a graph for you … automatically. Excel will draw your default style chart when you press the F11 key and the chances are that it won’t look anything like the population pyramid you want but don’t worry! Since we are here to sort that our. Click on the Chart and on the Chart Tools Menu, Design sub menu. You can then change the chart type if necessary ... see the screenshot below to see all of this:

Image

Choose Clustered Bar Chart, as you can see in the dialogue box that follows:

Image

Click OK and you should see something like the following:

Image

If necessary, right click on the chart and select Source Data and click on the Series tab.

Remove the first series per 10,000 pax km

For British Airways, click on the Category Axis Label icon and select the appropriate range, Excel will show it like this ='Sheet1'!$X$X:$X$XX ... it says Sheet1 or whatever it says on the worksheet tab where the data are kept

Now select the second series that also says per 10,000 pax km

Select the Name icon and then select the cell where it says easyJet

Format the chart in terms of title and axes labels as you wish:

Click next again and type in the titles you want to put onto your Chart … you can see what I did. If you are using different data, type what it most informative and appropriate. At this stage, my chart looks like this!

Image

As it stands, the negative values are mixed up with the vertical axis labels. To sort this out, right click the vertical axis and make the following settings:

Image

Image

The legend is very useful for this graph but it is better to put it at the bottom of the chart: right click the legend, Format legend, Placement, Bottom. You should edit the legend so that it reads BA and easyJet rather than the lengthy versions you might be able to read in the chart above. If you chart has a coloured background, it’s best to get rid of it ... and grid lines: right click, clear each of them will do that for you

Change the colours of the bars if you want: right click format … you choose!

Image

Very, very nearly there now. All that’s wrong is that the bars are offset from each other. You could leave them like that but it’s not so attractive is it? So let’s adjust the bars:

Right-click on any one of the bars and select Format Data Series

Click Options tab and make the following changes:

Overlap = Change this to 100 in the appropriate text box.

Gap width = Change this to 0 or 10 or 20 ... in the appropriate text box ... try them all and see which you prefer

OK

That’s it: you’ve now got a population pyramid of your dreams! Change the colours of the bars as you wish. Change the font and the font size and colour too.

For the final version I have removed the two data points Selling Costs and Handling Charges ... This is my final version: orange bars for easyJet because that’s its house colour … I changed the font size, I put a border on my chart … and so on.

Image

I have taken you through this process step by step. This process is a little complicated but once you have done it twice or three times, you will breeze through it!

 

Duncan Williamson

No comments: