PTS Blog

Main menu:

PTS Utilities

Commercial Utilities developed by Peltier Technical Services

Waterfall Chart
Box and Whiskers


 

Excel Books

Books that I own and use while developing in Excel

Subscribe

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Buy me a coffee

If this topic or the blog itself has been helpful, why not support further development by treating me to coffee?


Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

How to Build a Simple Panel Chart

by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2009.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.


In Challenge - Show Market Share Changes I suggested a panel chart in response to Chandoo’s Visualization Challenge - How to show market share changes? In Explore Your Data With Pivot Tables I showed how a simple pivot table analysis could lead to this type of chart. And in this post I will show the data arrangement and techniques I used to create this chart.

Panel Chart Data

The data used for the chart is shown below. This first table contains data to be plotted in two XY chart series. The lines stretch across category labels at X values 1, 2, 3, 4, and 5. I arbitrarily selected ±0.33, which produces the pairs {0.67, 1.33}, {1.67, 2.33}, etc. In fact, these values are not hard coded. Outside of the range shown here I have the X values for the category labels {1, 2, 3, 4, 5} and the value 0.33. Formulas produce the X values; if I want a change, I can merely change the vaue from 0.33 to something different, and all of the X values update. Blank rows in the data will produce gaps in the otherwise continuous series. For example, a line is plotted between 0.67 and 1.33, a gap is present between 1.33 and 1.67, a line is drawn between 1.67 and 2.33, and so forth.

panel chart data

The data for my dummy category axis labels is shown below. I will make a simple column chart with this series. Excel will place the C1 to C5 labels at X=1 to 5. The Y axis range is blank, so the column chart will have bars with zero height. (I could have used zero values as well.)

panel chart axis data

Building the Panel Chart

Start by selecting the axis data and creating a column chart. I temporarily inserted values of 1 so it’s obvious what is going on. I’ve also already changed the axis and plot area lines to gray.

panel chart step 1

Clean up the chart. Since we’re concerned with relative trends, and because these are tiny little charts, I have removed the Y axis labels. I also removed the title and the X axis tick marks, and moved the legend to the top of the chart.

panel chart step 2

Now I’ve removed the “1″ values in the axis data range.

panel chart step 3

Add the brand 1 and brand 2 data. Copy the range, select the chart, and use Paste Special to add the data as new series, with categories in the first column (but not replacing the existing categories) and series names in the first row. These series are added as more column series.

panel chart step 4

Select one of the added series, and change it to an XY type (right click on it, choose Chart Type or Change Chart Type, and select the type from the dialog). Excel helpfully (NOT!) adds secondary axes, because nobody could possibly want XY and column series on the same axis. Except us.

panel chart step 5

In Excel 2003 or earlier, immediately select the other added series, and press the F4 function key to repeat the previous action. In Excel 2007, the F4 key has lost most of its former glory, so you’ll have to use the right-click approach to change it to an XY type.

panel chart step 6

Select one of the XY series (’brand1′ below) and format it so it is on the primary axis.

panel chart step 7

Select the other XY series, and in Excel 2003 or prior, click F4 again. Excel 2007 users, you know the drill.

panel chart step 8

Well, that’s lines up the way we want. Let’s tidy up, shall we? First, select the legend entry for the ‘axis’ series (the text label, not the colored rectangle), and press delete.

panel chart step 9

Add vertical (X-axis) major gridlines (Chart menu > Chart Options > Gridlines tab in Excel 2003, one of the contextual Chart Tools tabs in 2007). Format them the same gray as the border.

panel chart step 10

Finally, use formatting to make the brand data stick out a bit. I used brighter colors and a thicker line.

panel chart step 11 - done

Not too tricky. We needed a little hint about data arrangement, and one dummy series to handle the X axis labels.

Possibly Related Posts:

Bookmark and share this entry:
  • Digg
  • del.icio.us
  • Facebook
  • Technorati
  • TwitThis
  • StumbleUpon
  • Google
  • Reddit
  • MySpace
  • Slashdot
  • LinkedIn
  • Yahoo! Buzz

Comments

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

Read the PTS Blog Comment Policy.


Pingback from How to Present Market Share Changes between Two Years - 14 Excel Charting Alternatives | Pointy Haired Dilbert - Chandoo.org
Time: Thursday, November 13, 2008, 8:05 pm

[...] Finally the alternatives presented by Peltier. This one is a panel chart (here is an excel tutorial for panel charts) [...]

Write a comment





Subscribe without commenting

Create Excel dashboards quickly with Plug-N-Play reports.