Peltier Tech Blog

Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Add-Ins

Peltier Tech Waterfall Chart Utility
Peltier Tech Cluster-Stack Chart Utility
Peltier Tech Box and Whisker Chart Utility
Peltier Tech Marimekko Chart Utility
Peltier Tech Dot Plot Utility
Peltier Tech Cascade Chart Utility

 
Excel Dashboards

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Privacy Policy

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

Marimekko Replacement – Overlapping Bars (Easy)

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

I showed an overlapping bar chart alternative to a Marimekko chart in my recent post The Problem with Marimekkos. I gave very few clues about how to construct such a chart, so now I’m showing the protocol.

The approach shown here is somewhat simplified, and works only when the grid is symmetrical, with the same number of rows and columns.

Like most advanced charts, you need to rearrange the data in order to make it work. Here is the original data and a Marimekko chart made from it.

Marimekko Chart Data - Condensed

Marimekko Chart

The first step is to compile the row and column subtotals into columns, with row and column headers in the first column, and the data staggered so each set of data appears in its half of the chart (in this case, Company to the left and Segment to the right).

Marimekko Chart Data - Expanded Subtotals

Make a clustered column chart with these three columns of data.

Overlapping Bar Chart - Step 1

Set the Gap Width of these series to 25, so the gaps between clusters are 25% as wide as the bars. This 25% comes from the final chart, which will have four narrow columns per wide column, with a narrow-column-width gap between.

Set the Overlap to 100, so the bars of one series overlap with the blanks in the other.

Overlapping Bar Chart - Step 2

Now rearrange the rest of the data into the following sparse array. The gray rows are blank; I’ve only colored them for my own benefit in my working file.

Marimekko Chart Data - Fully Expanded

Copy this range, select the chart, and use Paste Special to add the data to the chart as new series. Because the Overlap was set to 100, these new bars overlap the existing ones. For now I’ve colored the bars in contrasting colors with a custom palette.

Overlapping Bar Chart - Step 3

Here’s a glimpse of the custom Excel 2003 color palette I used to format these bars. Bar_Chart_Graded_Colors.xls is a small downloadable Excel 2003 workbook that uses this palette.

Custom Palette for Overlapping Bar Chart

One by one, move each of the series you’ve just added to the secondary axis. Change the Gap Width of one of the added series to 0 (zero). This is as good a time as any to remove the legend.

Overlapping Bar Chart - Step 4

Excel has added the secondary Y axis, but we want the secondary X axis.In Excel 2003 and earlier, go to Chart menu > Chart Options > Axes tab, uncheck the Secondary Value (Y) Axis box and check the Secondary Category (X) Axis box. The bars almost line up.

Overlapping Bar Chart - Step 5

Format the secondary category axis (top of the chart) so the value axis does not cross between categories. Now the alignment is almost perfect. Tweaking the width of the chart by a couple pixels may make the alignment slightly better, or slightly worse.

Overlapping Bar Chart - Step 6

Changing to a matching color scheme completes the chart, and makes the misalignment almost vanish.

Overlapping Bar Chart - Step 7

Changing the gap width of the secondary axis bars to 10 minimizes the misalignment and provides a border between the small bars.

Overlapping Bar Chart - Step 8

The more complicated approach allows for asymmetric data arrays (different numbers of rows and columns) and also eliminates this slight misalignment. The next tutorial, Marimekko Replacement – Overlapping Bars (Hard), will describe that method for making overlapping column charts.

To construct a 2×2 panel chart that shows the same data, perhaps somewhat more clearly, see Marimekko Replacement – 2 by 2 Panel.

Marimekko 2x2 Panel Chart

IIf you still want to make a Marimekko chart, you might consider the PTS Marimekko Chart Utility. Like all of my commercial utilities, it reduces the manual process of constructing a complex chart to simply selecting a range, choosing a couple of options, and admiring the result.

Related Posts:

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

Learn how to create Excel dashboards.

Comments


Comment from Chandoo
Time: Tuesday, March 3, 2009, 11:30 pm

Jon, While the marimekko chart provides a good utility in terms of showing segment-wise sales, I think this chart would be more difficult to interpret. It might be easier to read the stacked chart (regular variety or the variable width variety) than this one.

For one, when you look at the chart, the blank space (between the dark blue and lighter shades of blue) can confuse as it gives an impression of area chart rather than bar chart. I liked your chart version : http://peltiertech.com/images/2009-02/MariBar_PanelColumns.png compared to what you have shown here. I guess it is much more easier to read.


Comment from Jon Peltier
Time: Tuesday, March 3, 2009, 11:54 pm

Chandoo -

I concluded the same about the readability of the overlapping bar chart in The Problem with Marimekkos. I’m finishing up the series with Marimekko Replacement – 2 by 2 Panel.


Comment from Michel Gerday
Time: Thursday, March 5, 2009, 3:24 am

Can you release the color palette you mentioned above ?
Thank you.


Comment from Jon Peltier
Time: Thursday, March 5, 2009, 6:51 am

Michel –

Good idea. It isn’t perfect, I only changed the colors needed for the graded bar fills, plus I lightened up the grays. Anyway, here it is:

Bar_Chart_Graded_Colors.xls


Comment from Michel Gerday
Time: Thursday, March 5, 2009, 8:04 am

Jon,
I really thank you for this.

I recently created a line chart with 27 different series, i.e. all European Union’s Member States.
With the standard color palette (and also with the one I got from the Excel dashboards as advertised below :-) ), it is really a nightmare because all colors seem identical or the contrast is weak (yellow on white chart background).
You could ask : “Why do you want such a mess of lines ?”
And I would reply: “Just because God wants it, whoever God is )

Hence it would be good idea to develop a range of color palettes, hopefully by Excel version.
I am sure that Excel geeks, like myself, would be even ready to buy them, :-)


Comment from Jon Peltier
Time: Thursday, March 5, 2009, 8:16 am

Michel -

I’d think it would be impossible to make sense of your 27-series chart by using different colors. How about this approach, which shows all the data, but only emphasizes one series at a time:

Easier Interactive Multiple Line Chart


Pingback from ggplot2: Marimekko Replacement – Overlapping Bars « Learning R
Time: Wednesday, April 1, 2009, 8:12 am

[...] April 1 tags: business, chart, excel, ggplot2, plot, R, reshape by learnr Jon Peltier’s tutorial demonstrates an alternative to the Marimekko [...]


Pingback from ggplot2: Marimekko Replacement – Overlapping Bars « Learning R
Time: Thursday, September 17, 2009, 10:46 am

[...] April 2 tags: business, chart, excel, ggplot2, plot, R, reshape by learnr Jon Peltier’s tutorial demonstrates an alternative to the Marimekko [...]

Write a comment

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.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

Peltier Tech Waterfall Chart Utility Peltier Tech Cluster-Stack Chart Utility Peltier Tech Box and Whisker Chart Utility Peltier Tech Marimekko Chart Utility Peltier Tech Dot Plot Utility Peltier Tech Cascade Chart Utility

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