Clustered-Stacked Column Chart with Target Line
by Jon Peltier
Tuesday, January 27th, 2009
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
In Clustered-Stacked Column Charts I showed how to create a chart that combined clustered columns with stacked columns. It’s basically just a trick using staggered data to make a stacked column chart so that series display columns for only certain categories, and the gaps give the appearance of clusters of stacked columns. Smoke and mirrors, but it’s an effective use of smoke and mirrors.
That’s been my most popular blog post, and probably the most commented. Many of the comments ask about modifications to the technique to achieve different effects, and mostly these are achieved by carefully adjusting the arrangement of the data. One such request was, How do I add a target line that reaches to the edges of the chart?

The answer isn’t too complicated. Set up the data as shown below.

Using the technique in Clustered-Stacked Column Charts, create a chart using the first five rows of data.

Copy the last row of data (including the label in the first column), select the chart, and use Paste Special to add the data as a new series. A new column series will appear stacked on the rest.

Right click the new series, choose Chart Type, and select the line without markers option. Excel helpfully adjusts the secondary category axis, making the labels visible and making the value axis cross between categories.

No matter, we fixed this once before during the protocol, we can fix it again. Format the secondary category axis so it again shows no category labels, and so the axis crosses at the categories, not between them.

Related Posts:
- Clustered-Stacked Column Charts with Vertical Separators
- Clustered-Stacked Column Charts
- Clustered-Stacked-Column Combo Chart With Lines
- Clustered-Stacked Bar Charts
- Clustered-Stacked Column Chart Utility
- Chart with a Dual Category Axis
- Stacked Area Chart Challenge
- Integer Values on Line Chart Category Axis
- Fill Between XY Chart Series (XY-Area Combo Chart)
- Horizontal Bands in the Background of an Excel 2007 Chart
Posted: Tuesday, January 27th, 2009 under Chart Types.
Comments: 2
Comments
Comment from M@rk
Time: Thursday, January 29, 2009, 10:48 pm
Thanks Jon, excellent addition to clustered-charts and just what I needed ;-)… I wanted to mention (I’m on 2003), my drama was getting the lines to the edges. I had already removed the Pri & Secondary Category labels from the chart (they’re not required), so I found it difficult to get to the “Value (Y) axis crosses between categories” option in the Format Axis window. Also, with only the Secondary Categories (and not Primary) activated, the “…crosses between categories” option wasn’t available anyway. Maybe these items are accessible via other menus, but when ‘playing’ that was my experience, and added to some confusion in the last step. Sorted now. Cheers, will definitely be buying you a coffee!! :-)
Comment from Aaron Warnecke
Time: Tuesday, June 15, 2010, 12:56 pm
Jon – This method and adding a horizontal line to a column chart are GREAT methods, but I can’t get them to work for my purposes. I’m trying something similar, adding a VERTICAL line to a HORIZONTAL cluster-stacked chart (rows, not columns), and I can’t get it to work! You’d think it’d be similar, but for some reason it isn’t. I was successful in adding a horizontal line to a vertical cluster chart per your methods, but I don’t seem to be excel-handy enough to convert that to a horizontal bar-style cluster chart – the line simply remains horizontal with the rest of the bars! Can you help me out?



















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.