# How to draw a column or bar chart 00:00:00,000 --> 00:00:16,617 Here is the data that we're working with in this exercise. The large table is what you should have downloaded and the two columns of tickers on the right are the means for Figure 3 and for Figure 2a. We're going to draw a column chart to compare two groups of numbers.   00:00:16,617 --> 00:01:19,170 Basically we will be comparing the results of the beginning of the experiment and at the end of the experiment under two conditions. You can see that there are two statistics for the first period and the two for the final period are in bold. Here select these cells by clicking on them while holding down the Control key or if you're a Mac user hold down the Command key and then you click 'Insert', look for the chart icon and click on the first 2D column option. Excel is going to offer you all sorts of options for fancy 3D columns. They look pretty but they can make it harder to see the relative heights up for columns, so it's good practice always to stick to two dimensions when displaying data unless you really, really need to use a 3D chart. We want to see the change between period 1 and period 10, so that needs to be on the horizontal axis. To do this you need to right click on the chart - that's a Control click if you're on a Mac, and click select data and a box comes up. 00:01:19,170 --> 00:02:37,169 This is what it looks like in Windows. Mac users just hang on for a second because the box you will see looks a bit different. The big button swaps the axes. With this box opened, then select 'Series 1' and 'Edit'. Series 1 represents the experiment done without punishment and we want to tell people that. So type this into the box as the series name and click OK. Do this for the other series which is with punishment. Next we want to label the two groups of bars: one shows the result in period 1 and the other is for period 10. So click on the right hand side box on entry 1 and on 'Edit'. We could just type 1 and 10 but we're going to pick up these names direct from the spreadsheet. This is always good practice because if you edit the spreadsheet the chart will automatically synchronize and pick up any new data. Click on cell A3, comma, and on A12, which are the two rows we need. This selects A3 for the name of the first group and A12 for the name of the second group. Click to exit the box and as you can see they previously said 1 and 2 and now they say 1 and 10, which is correct. This refers to the periods of the experiment. 00:02:37,169 --> 00:03:00,971 Now Windows users you can relax and we'll watch the same thing done on a Mac. On a Mac now, the switch row and column button is in a different place. Editing the labels is similar. And the process of picking up the labels from cells A3 and A12 is pretty much the same.   00:03:00,971 --> 00:03:29,960 Select 1, comma, select the other and the output is the same. So moving on back in Windows, at the top of each bar we want to display the data that the height of the bar represents, so you right click - Mac users you would Control-click in the same situation on one of the columns. Click 'Add data labels'. For Mac users this just adds the number automatically. 00:03:29,960 --> 00:03:46,300 Windows users have an alternative to add call-outs which puts the number in a fancy little box with an arrow. Just as we picked a 2D chart often the easiest chart for other people to understand is the simplest one and in this case that means we simply add the number above the bar. 00:03:46,300 --> 00:04:02,120 So click 'Add data labels' to do this. Finally as always label your axes clearly and add a chart title. Now it's easy to compare the outcome in period 1 and in period 10 without punishment and with punishment.