Minor Bar Chart Annoyance

Assume the following data as a chart source . . .

image

Now use the Chart Wizard to create a bar chart. The Wizard produces the following:

image

Most people read from top to bottom. If you look at the chart the Category items appear to be in reverse order (i.e. D, C, B, A). However, Excel recognizes the reverse order as the correct order.

It's an easy fix. Click on the Category axis to bring up the Format Axis Dialog box. On the Scale tab, select the Categories in reverse order option and the Value (Y) axis crosses at maximum category option.

image

This little macro works too (assuming an embedded chart . . click on or activate the chart first and then run it):

Sub SetUpBarChart()
    Dim Cht As Chart
    Set Cht = ActiveChart
    With Cht.Axes(xlCategory)
        .ReversePlotOrder = True
        .Crosses = xlMaximum
    End With
End Sub

After doing so, the chart looks like this:

image

I wonder why the programmers did not / could not design the bar chart to show categories in a top-to-bottom order first?

Posted on January 09, 2009 | Filed under: Charts | Comments (3) | Permalink
Page 1 of 1 pages

Comments

The reason for this is very straightforward. Replace Item A, Item B, etc., with 1, 2, etc. This puts a counting number at each label position, increasing from 1 as the first label to N as the Nth label.

Notice anything? 1 is closest to the origin, and subsequent labels are further away in order.

This is the same as the category axis in a column/line/area chart, only it goes in order horizontally, so nobody is concerned. Make a column chart with left-to-right labels, and convert it to a bar chart. It is inverted about a 45° plane, the same as if you switched X and Y in an XY chart.

If you want designers to start to second guess what the user may have “really” meant when they clicked on the chart wizard, you will have so many more of the behaviors that experienced users don’t like about Office 2007. The most you should ask for is a ReversePlotOrder checkbox for each axis in the Wizard.

Posted by Jon Peltier  on  01/09  at  05:04 AM

Jon,

Thanks.  I never thought about it that way.  Your explanation makes perfect sense.

Congratulations the almost one-year anniversary of your blog!  You’ve published quite a bit very useful information in a short period of time.  Given family, work, and other responsibilities, I can appreciate the amount of time and effort it takes.

For 2009 I hope to increase my own post rate to around 8 - 10 per month (hopefully 2 -3 per week).  In my case one of my “other responsibilities” includes studying for professional exams which seem to take up about 90% of my available time.  We’ll see how it goes. 

John Mansfield

Posted by John Mansfield  on  01/11  at  06:14 AM

Thanks, John. The blogging has been interesting and rewarding.

Good luck on the exams. When does that happen?

Posted by Jon Peltier  on  01/11  at  07:00 AM
Page 1 of 1 pages

Comment Entry

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?

Statistics

  • Total Entries - 136
  • Current Viewers - 33

Categories

Entries by Day

Jul - 2010
S M T W T F S
27 28 29 30 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Recent Comments

Syndicate