Doubling up your Excel charts

Here's a little Excel charting hack (with a screencast) that will baffle your colleagues, confound your enemies, and provide useful information display. Sometimes you want to graph related series on two axes without confusion about which axis belongs to which series. Something like this:

Excel Double Chart

For details on how this is done, watch the screencast.

The approach comes down to two techniques:

  1. Extend the ranges of the primary and secondary axes to compress the secondary axis values to the bottom of the chart and the primary axis to the top of the chart.
  2. Use conditional custom number formats to hide values on the axes. For instance a number format like: [>1]"";0% displays a blank string ("") if the number is greater than 1 and uses the "0%" format otherwise.

Have I mentioned there's a screencast? Have fun.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. All source code is released under a BSD License unless otherwise specified.

21 comments | Show all comments only the last 5 are shown


February 17, 2007
Jon Peltier said:

Derek -

In many cases you can do without a pivot chart:

Pivot Tables, Pivot Charts, and Real Charts
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=553

For some projects, I even have code that redraws all the charts when the PT is refreshed. The code appears to the untrained eye to work as quickly as redrawing of a native chart.

Greg -

You can do this to X axes in an XY chart. Line and Column charts use a non-numeric category axis rather than a value axis.

Adam -

I learned the picture-in-the-comment trick from Debra Dalgleish (http://contextures.com/tiptech.html).

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


February 27, 2007
Caley said:

Awesome tip!

My favorite tip is still the in-cell graph
http://www.juiceanalytics.com/weblog/?p=239

Does anyone know if this doubling up chart will work with Excel 2007 Pivot Charts when the data is refreshed?


May 16, 2007
Ravi Warrier said:

Hi, have the links to all the screencasts changed. This is I think the 3rd or the 4th screencast that I wanted to open, but get a page that says what I was looking for cannot be found.
Please let me know if there are any other URLs for the same.
Thanks.


January 18, 2008
Jenise said:

DItto comment above. Trying to access screencast but get a page that says what I was looking for can not be found. Are these screencasts still available?


February 4, 2008
Jon Peltier said:

I tried sending someone to the screencast, but I see that the link is still broken. You guys checking comments?

Your name

Email (optional, will not be shared)

Type the word "juice" (required to confuse the spammers)

Your comment


Add a comment