<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peltier Tech Blog &#187; Combination Charts</title>
	<atom:link href="http://peltiertech.com/WordPress/category/combination-charts/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Tue, 31 Aug 2010 07:00:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Build a Bar-Line Combination Chart</title>
		<link>http://peltiertech.com/WordPress/build-a-bar-line-combination-chart/</link>
		<comments>http://peltiertech.com/WordPress/build-a-bar-line-combination-chart/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 05:00:17 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[Bar-Line Combination]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2612</guid>
		<description><![CDATA[When you have two series in a chart, and you want to show them using two different chart types, you have a broad array of choices. If you have target and actual data for a set of product attributes, for example, you can make a column-line combination chart readily.
Suppose your data looks like this (ignore [...]]]></description>
			<content:encoded><![CDATA[<p>When you have two series in a chart, and you want to show them using two different chart types, you have a broad array of choices. If you have target and actual data for a set of product attributes, for example, you can make a column-line combination chart readily.</p>
<p>Suppose your data looks like this (ignore the &#8220;height&#8221; column for now):</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLineData.png" alt="Bar-Line Combo Chart Data" /></p>
<p>Make a column chart with all of the data:</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine_Column.png" alt="Column Chart with Bar-Line Data" /></p>
<p><span id="more-2612"></span>Right click the Actual series, choose Chart Type from the pop up menu, and select a Line Chart subtype:</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine_ColumnLine.png" alt="Column-Line Combo Chart with Bar-Line Data" /></p>
<p>That was pretty easy.</p>
<p>What if you want to use horizontal bars? Perhaps the attribute labels are too long to make good category labels along the horizontal axis. Long ago I wrote a tutorial on <a href="http://peltiertech.com/Excel/Charts/BarLineCombo.html" rel="nofollow" title="Bar-Line Combination Charts" >Bar-Line Combination Charts</a> on my web site, but that&#8217;s a complicated example. Here&#8217;s a new, simpler version of that tutorial.</p>
<p>Let&#8217;s try the same approach as above. Here&#8217;s a chart with both series as bars:</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine01.png" alt="Bar-Line Combo Chart - Step 1" /></p>
<p>Right click on the Actual series, choose Chart Type, select the line with markers subtype. That&#8217;s no good. The bars increase in value from left to right, while the line values increase bottom to top.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine02.png" alt="Bar-Line Combo Chart - Step 2" /></p>
<p>So we need a new approach. Make a bar chart with the Target data.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine03.png" alt="Bar-Line Combo Chart - Step 3" /></p>
<p>We want the attributes listed in the opposite order, so format the vertical axis, check Categories in Reverse Order and Value Axis Crosses at Maximum.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine04.png" alt="Bar-Line Combo Chart - Step 4" /></p>
<p>Copy the Actual and Height columns of data, select the chart, and use Paste Special to add the data as a new series, series in columns, series names in first row, and categories in first column.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine05.png" alt="Bar-Line Combo Chart - Step 5" /></p>
<p>Right click on the Actual series, choose Chart Type, then select the Lines with Markers version of the XY chart type. Since Actual is used for the X values of the XY series, both series show Target and Actual increasing from left to right.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine06.png" alt="Bar-Line Combo Chart - Step 6" /></p>
<p>Here is how to compute the values in the Height column. There are five categories (attributes) along the left hand axis, and the XY series markers fall in the middle of each category.Y values for the XY series range from zero at the bottom to 5 at the top of the axis. The first point is for Attribute 1, and is plotted at a height of 4.5. The next one, for Attribute 2, is at 3.5, an so forth, as shown in this chart.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine07.png" alt="Bar-Line Combo Chart - Step 7" /></p>
<p>You have to keep both horizontal axes in the chart, and you have to make sure they stay synchronized when the data changes. But you can hide the top horizontal axis: format it so it uses no line and shows no tick labels.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/BarLine08.png" alt="Finished Bar-Line Combo Chart" /></p>
<p>Well, that wasn&#8217;t so hard, either.</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://www.exceluser.com/cmd.asp?Clk=2474005" rel="nofollow" ><IMG SRC="http://www.exceluser.com/images/info/pub/pnp468_01.jpg" ALT="Create Excel dashboards quickly with Plug-N-Play reports." WIDTH="468" HEIGHT="60" border=0></a><br />
<br /><img src="http://www.exceluser.com/cmd.asp?Imp=2474005" width="0" height="0" border="0"></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Build%20a%20Bar-Line%20Combination%20Chart%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart&amp;bodytext=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;t=Build%20a%20Bar-Line%20Combination%20Chart" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart&amp;notes=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart&amp;annotation=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;title=Build%20a%20Bar-Line%20Combination%20Chart" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;t=Build%20a%20Bar-Line%20Combination%20Chart" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Build%20a%20Bar-Line%20Combination%20Chart&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;submitHeadline=Build%20a%20Bar-Line%20Combination%20Chart&amp;submitSummary=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbuild-a-bar-line-combination-chart%2F&amp;t=Build%20a%20Bar-Line%20Combination%20Chart&amp;s=When%20you%20have%20two%20series%20in%20a%20chart%2C%20and%20you%20want%20to%20show%20them%20using%20two%20different%20chart%20types%2C%20you%20have%20a%20broad%20array%20of%20choices.%20If%20you%20have%20target%20and%20actual%20data%20for%20a%20set%20of%20product%20attributes%2C%20for%20example%2C%20you%20can%20make%20a%20column-line%20combination" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/build-a-bar-line-combination-chart/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Two Color XY-Area Combo Chart &#8211; Guest Post</title>
		<link>http://peltiertech.com/WordPress/two-color-xy-area-combo-chart-guest-post/</link>
		<comments>http://peltiertech.com/WordPress/two-color-xy-area-combo-chart-guest-post/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 05:00:58 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[area-xy combo]]></category>
		<category><![CDATA[Guest Post]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2490</guid>
		<description><![CDATA[Today&#8217;s post is written by David Montgomery, who has a new blog called David @ Work. David read two of my recent posts, Fill Below an XY Chart Series (XY-Area Combo Chart) and Fill Between XY Chart Series (XY-Area Combo Chart), and noted the lack of an explanation for different colors between XY series that [...]]]></description>
			<content:encoded><![CDATA[<p><em>Today&#8217;s post is written by David Montgomery, who has a new blog called <a href="http://davidmerlemontgomery.blogspot.com/" rel="nofollow" title="David @ Work" >David @ Work</a>. David read two of my recent posts, <a href="http://peltiertech.com/WordPress/fill-below-an-xy-chart-series-xy-area-combo-chart/">Fill Below an XY Chart Series (XY-Area Combo Chart)</a> and <a href="http://peltiertech.com/WordPress/fill-between-xy-chart-series-xy-area-combo-chart/">Fill Between XY Chart Series (XY-Area Combo Chart)</a>, and noted the lack of an explanation for different colors between XY series that cross.</em></p>
<p><em>David attacked the problem in his blog post <a href="http://davidmerlemontgomery.blogspot.com/2009/09/two-color-xy-area-combo-chart.html" rel="nofollow" >Two Color XY -Area Combo Chart</a>, and he has graciously accepted my offer to repost his article below.</em></p>
<h2>Two Color XY-Area Combo Chart</h2>
<p>Last Wednesday, Jon explained the technique for creating an <a href="http://peltiertech.com/WordPress/fill-between-xy-chart-series-xy-area-combo-chart/"title="Read this if you haven't already." >XY-area combo chart</a>. The original article shows how to color the area between two lines in a chart where the lines never cross. I&#8217;m going to assume you read the article and that we&#8217;re all starting at this point:</p>
<p align="center"><img style="width: 428px; height: 239px;" src="/images/2009-10/d678v8f_3htbs5zds_b.jpg" alt="" /></p>
<p>But what if you want to cross the lines? The good news is that this isn&#8217;t Ghostbusters and crossing the lines doesn&#8217;t break anything, the area between the lines is still filled in perfectly. If we flip the values in B5:C5, B7:C7, and B9:C9, we get the following:</p>
<p align="center"><img style="width: 520px; height: 257px;" src="/images/2009-10/d678v8f_4dd6g4bj2_b.jpg" alt="" /></p>
<p><span id="more-2490"></span>The bad news is that the fill series is only one color and as soon as you show it to your boss she&#8217;ll ask why the positive and negative areas aren&#8217;t green and red, respectively (which you shouldn&#8217;t do anyway because a lot of people are red/green colorblind). Before today, you would have said that it would take too long to add a second color, that it was impossible, or you would have just drawn auto shapes on top of the chart. Today though there is a much easier solution:</p>
<ol style="margin-left: 24pt;">
<li>Download the workbook at the end of this post.</li>
<li>Plug in your data values.</li>
<li>Profit.</li>
</ol>
<p>But if you&#8217;re like me, and I know I am, chances are you&#8217;re reading this blog because you want to learn how to do it yourself. At this time I should note that Excel 2003 and I have a monogamous relationship and that some of these steps may be different for other versions of Excel.</p>
<p>Okay, so the first thing that is obvious is that you&#8217;ll need to add another data series if you want an additional color. Creating separate positive and negative data series doesn&#8217;t work by itself though; you need your positive and negative shading to end where the lines <em>intersect</em>, but the shading will continue on to the next point on the x-axis with the current configuration.</p>
<p align="center"><img style="width: 518px; height: 256px;" src="/images/2009-10/d678v8f_5d3gk2jd6_b.jpg" alt="" /></p>
<p>What we need to do is find the x values at the points where the lines intersect and add them to our secondary x-axis (just a recap, the lines are on the primary x-axis, the shading on the secondary x-axis).</p>
<p>This isn&#8217;t as hard as it sounds, but when searching for a way to find the point where lines intersect in Excel I found a lot of people suggesting Goalseek. This deeply offends the math geek in me. Letting machines do math for you is only okay if you told it <em>exactly</em> what to do. If you didn&#8217;t tell it what to do, the computer is <em>thinking for you</em>, and that is a slippery slope to <a href="http://www.amazon.com/gp/product/B001VLBDD0?ie=UTF8&amp;tag=dawo-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B001VLBDD0" rel="nofollow" title="I have absolutely no shame."  target="_blank">Skynet</a>. But I digress&#8230;</p>
<p>The common formula for a straight line is <tt class="tt">y = mx + b</tt>, where m is the slope and b is the y-axis intercept. At each point of intersection in our chart, we have two lines:</p>
<p><tt class="tt">y<sub>1</sub> = m<sub>1</sub>x<sub>1</sub> + b<sub>1<br />
 </sub>y<sub>2</sub> = m<sub>2</sub>x<sub>2</sub> + b<sub>2</sub></tt></p>
<p>Because we want the point where the lines intersect, y<sub>1</sub> = y<sub>2</sub> and x<sub>1</sub> = x<sub>2</sub>. Also, because both of the formulas equal y, they are also equal to each other and we can simplify to:</p>
<p><tt class="tt">m<sub>1</sub>x + b<sub>1</sub> = m<sub>2</sub>x + b<sub>2</sub></tt></p>
<p>Solving for x gives us:</p>
<p><tt class="tt">x = (b<sub>2</sub>-b<sub>1</sub>)/(m<sub>1</sub>-m<sub>2</sub>)</tt></p>
<p>Slope <tt class="tt">m<sub>1</sub></tt> and intercept <tt class="tt">b<sub>1</sub></tt> correspond with the top line, the red one in the example, and <tt class="tt">m<sub>2</sub></tt> and <tt class="tt">b<sub>2</sub></tt> refer to the bottom/blue line. For now, let&#8217;s focus on the first point of intersection where the two bolded line segments cross:</p>
<p align="center"><img style="width: 514px; height: 248px;" src="/images/2009-10/d678v8f_6hs2hrwt5_b.jpg" alt="" /></p>
<p>Excel has built in functions for calculating the slope and the intercept for a range of x and y values which they&#8217;ve cleverly named SLOPE() and INTERCEPT(). We&#8217;ll only need two points to calculate each of our line segments, so our formulas to calculate the two slopes (m<sub>1</sub> &amp; m<sub>2</sub>) between the first and second points will look like this:</p>
<p align="center"><img style="width: 299px; height: 292px;" src="/images/2009-10/d678v8f_8fftv4nc7_b.jpg" alt="" /></p>
<p>Our two y-axis intercepts are calculated in the exact same way, just replace SLOPE with INTERCEPT. We&#8217;ll need to calculate the slope and intercept for both line segments at every point where the lines cross. If the lines don&#8217;t cross, we can skip the calculation.</p>
<p>Because the lines can potentially cross between any two data points, we&#8217;re doubling the size of the original secondary x-axis. Every other point will be one of the original data points, and the in-between points, which are the <em>potential</em> points of intersection, will either be NA() if the lines don&#8217;t cross (Excel will skip over #N/A errors when plotting most types of charts) or something like this formula (for cell G5) if they do cross:</p>
<p><tt class="tt">=(INTERCEPT(C4:C5,D4:D5)-INTERCEPT(B4:B5,D4:D5)) / <br />
 (SLOPE(B4:B5,D4:D5)-SLOPE(C4:C5,D4:D5))</tt></p>
<p>Remember that we&#8217;re just replacing the m and b values in <tt class="tt">x = (b<sub>2</sub>-b<sub>1</sub>)/(m<sub>1</sub>-m<sub>2</sub>)</tt> with the SLOPE() and INTERCEPT() functions. It isn&#8217;t as bad as it looks. In this image I&#8217;ve added the new secondary x-axis points in column G; the red shaded cells are the original points, and the blue points are the potential points of intersection that we&#8217;ve calculated:</p>
<p align="center"><img style="width: 516px; height: 361px;" src="/images/2009-10/d678v8f_9gtn8wgcp_b.jpg" alt="" /></p>
<p>Of course the formulas in the workbook are much uglier because I&#8217;m counting ROWS() and using the OFFSET() formula so I don&#8217;t have to manually add each line segment from the original data set, but it&#8217;s a little hard(er) to follow. Another trick to avoid manually entering each formula would be to insert blank cells between your original points in D4:F11. That way the original secondary x-axis and the new one in column G will be the same size and your formulas should copy down correctly.</p>
<p>So to recap, our new secondary x-axis should look something like column G. You still run from 0 to 1000, you still repeat the first and last value, and every other point is one of the original points as calculated in Jon&#8217;s original post. The points in between are #N/A errors if the lines don&#8217;t cross and the x values we just calculated for the points of intersection if the lines do cross. An easy way to tell if the lines cross?  In column F we had previously calculated the difference between the two original data series. If the product of any two adjacent points in column F is negative, the lines intersect between those two points. You should be able to add an IF() checking this at each potential point of intersection without too much trouble.</p>
<p>The next step is to rebuild the three Area data series. Area1 is the transparent base series, Area2 is the positive series, and Area3 is the new negative series.</p>
<p>To create Area1, every other row should point to an entry in the original series in column E. The in-between points should once again be NA() errors if the lines don&#8217;t intersect (same for Area2 and Area3 as well), and when they do intersect we just need to calculate the y value at that point. We already have the x value, so we can plug that into our y = mx + b equation. The formula for H5 would be:</p>
<p><tt class="tt">=SLOPE(B4:B5,D4:D5)*G5+INTERCEPT(B4:B5,D4:D5)</tt></p>
<p>You could also use the points C4:C5 for your y values as both line formulas will give the same result with that x value (G5).</p>
<p>Area2 and Area3 are incredibly straight forward. We still use the values in column F for every other cell, but the trick is that we only use the positive points in Area2 and only negative points in Area3, with the rest of the points being zero. This is easy to do with something like MAX(F4,0) for Area1 and MIN(F4,0) for Area3. All of the in-between points are either NA() errors (if there is no point of intersection) or zero. If everything worked correctly, your workbook should look like this:</p>
<p align="center"><img style="width: 648px; height: 317.406px;" src="/images/2009-10/d678v8f_10gzs3k4m7_b.jpg" alt="" /></p>
<p>Now you just need to add these new data series to the chart. Series 1 and 2 are the lines which should already be done, Series 3 (the transparent series) should now point to h2:h20, Series 4 (the positive series) should point to the values in column I, and you&#8217;ll have to add a Series 5 (negative) to point to the values in column J. The secondary x-axis values also need to be changed to the values in column G.</p>
<p>If your Series 5 didn&#8217;t default over to the secondary axes, you&#8217;ll have to switch it. Double click on Series 5, click on the &#8220;Axis&#8221; tab, and select the &#8220;Secondary axis&#8221; option.</p>
<p>Finally, double click on each area series, go to the &#8220;Patterns&#8221; tab, choose the two colors you think are the prettiest, and you&#8217;re all set.</p>
<p>If everything went correctly, you should have something like this:</p>
<p align="center"><img style="width: 517px; height: 257px;" src="/images/2009-10/d678v8f_11g42bq6g2_b.jpg" alt="" /></p>
<p>If not, the workbook will make more sense than I ever could:</p>
<p><a href="http://drop.io/davidatwork/" rel="nofollow" id="j:d7" title="The preview function of drop.io cannot fully comprehend the majesty of this workbook, and displays the contents as a twisted ruin."  target="_blank">TwoColorXYAreaChart.xls</a></p>
<p>And that&#8217;s all there is to it. Let me know what you think in the comments.</p>
<p>- David</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://www.exceluser.com/cmd.asp?Clk=2474005" rel="nofollow" ><IMG SRC="http://www.exceluser.com/images/info/pub/pnp468_01.jpg" ALT="Create Excel dashboards quickly with Plug-N-Play reports." WIDTH="468" HEIGHT="60" border=0></a><br />
<br /><img src="http://www.exceluser.com/cmd.asp?Imp=2474005" width="0" height="0" border="0"></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;bodytext=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;t=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;notes=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;annotation=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;t=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;submitHeadline=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;submitSummary=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftwo-color-xy-area-combo-chart-guest-post%2F&amp;t=Two%20Color%20XY-Area%20Combo%20Chart%20-%20Guest%20Post&amp;s=Today%27s%20post%20is%20written%20by%20David%20Montgomery%2C%20who%20has%20a%20new%20blog%20called%20David%20%40%20Work.%20David%20read%20two%20of%20my%20recent%20posts%2C%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20and%20Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%2C%20and%20noted%20the%20lack%20of%20" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/two-color-xy-area-combo-chart-guest-post/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fill Between XY Chart Series (XY-Area Combo Chart)</title>
		<link>http://peltiertech.com/WordPress/fill-between-xy-chart-series-xy-area-combo-chart/</link>
		<comments>http://peltiertech.com/WordPress/fill-between-xy-chart-series-xy-area-combo-chart/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 05:00:10 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[area-xy combo]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2458</guid>
		<description><![CDATA[In Fill Below an XY Chart Series (XY-Area Combo Chart) I introduced a technique for filling the area below an XY chart. This article shows how to extend that technique to filling between two XY series.

The trick is to use a chart that combines XY and Area type series. I described this technique in XY [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://peltiertech.com/WordPress/fill-below-an-xy-chart-series-xy-area-combo-chart/"title="Fill Below an XY Chart Series (XY-Area Combo Chart) | PTS Blog" >Fill Below an XY Chart Series (XY-Area Combo Chart)</a> I introduced a technique for filling the area below an XY chart. This article shows how to extend that technique to filling between two XY series.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_8.png" alt="Fill the area below and XY chart series" /></p>
<p>The trick is to use a chart that combines XY and Area type series. I described this technique in <a href="http://peltiertech.com/Excel/Charts/XYAreaChart2.html" rel="nofollow" >XY Area Chart: Fill Between XY Series</a>, but that protocol doesn&#8217;t work the same in Excel 2007 as in earlier versions. Fortunately by rearranging some of the steps, a process can be designed that works for all versions of Excel, from 97 (maybe earlier) through 2007. This tutorial explains the redesigned  protocol.</p>
<p><span id="more-2458"></span>Here is the data for this example. The XY data is in columns A through C, and the area chart data in D through F. The X values of the area chart series will be plotted on a date scale which ranges from 0 to 1000 (1000 should provide plenty of resolution for a small chart). The minimum and maximum in column D are thus 0 and 1000. The other X values are scaled to the X values of the XY series, which will be scaled between 0 and 15.</p>
<p>The scaling formula in D4 is</p>
<p><tt class="tt">=INT(1000*A4/15+0.5)</tt></p>
<p>or in the general case</p>
<p><tt class="tt">=INT(1000*(A4-Xmin)/(Xmax-Xmin)+0.5)</tt></p>
<p>This formula is filled down to cell D11.</p>
<p>Cell D3 contains the formula <tt class="tt">=D4</tt>, and cell D12 contains the formula <tt class="tt">=D11</tt>.</p>
<p>The values in column E are linked to the corresponding values in column B, and the values in column F are the differences between the values in columns C and B, except for the zeros at the ends of the range. The duplicate X values produce a vertical edge in the area chart, when plotted on a date scale axis. The zeros at X=0 and X=1000 automatically scale the area chart axis, which is an improvement on the older technique.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFillData.png" alt="XY-Area Combo Chart Data" /></p>
<p>The protocol starts by selecting the XY data range A3:C11 and creating an area chart (not an XY chart as in the old protocol, since that gets messed up in Excel 2007). The Excel 2003 chart is shown at the left, the Excel 2007 chart at the right.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_1.png" alt="XY-Area Combo Chart, Excel 2003 Step 1" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_1.png" alt="XY-Area Combo Chart, Excel 2007 Step 1" /></p>
<p>Continue by copying the area data in D1:F13, selecting the chart, and using Paste Special to add the copied data as a new series with categories in the first column and series names in the first row.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_2.png" alt="XY-Area Combo Chart, Excel 2003 Step 2" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_2.png" alt="XY-Area Combo Chart, Excel 2007 Step 2" /></p>
<p>The second two series are moved to the secondary axis. In 2003 (left), double click on the series, and on the Axis tab, choose Secondary. In 2007 (right), right click on the series, choose Format Data Series, and on the Series Options tab, choose Secondary.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_3.png" alt="XY-Area Combo Chart, Excel 2003 Step 3" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_3.png" alt="XY-Area Combo Chart, Excel 2007 Step 3" /></p>
<p>The first two series are then converted to an XY type. Right click on each series, choose Chart Type, and select the XY type and subtype you want.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_4.png" alt="XY-Area Combo Chart, Excel 2003 Step 4" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_4.png" alt="XY-Area Combo Chart, Excel 2007 Step 4" /></p>
<p>Excel only adds a secondary Y axis, and we need a secondary X axis, with a date scale. In Excel 2003 (left), go to Chart menu &gt; Chart Options &gt; Axes tab, check the box in front of Secondary Category (X) Axis, and select the Time Scale option. Excel 2007 (right) requires two steps. First, on the Chart Tools &gt; Layout tab, click the Axes dropdown arrow, then Secondary Horizontal Axis, and select Show Left to Right Axis. Then right click the new axis, choose Format Axis, and under Axis Type on the Axis Options tab, select Date Axis</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_5.png" alt="XY-Area Combo Chart, Excel 2003 Step 5" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_5A.png" alt="XY-Area Combo Chart, Excel 2007 Step 5A" /><br />
 <img src="http://peltiertech.com/images/2009-09/ComboXYAreaBlank.png" alt="" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_5B.png" alt="XY-Area Combo Chart, Excel 2007 Step 5B" /></p>
<p>Now hide the secondary X axis and make sure the highlighting in under (not over) the XY series. In Excel 2003 (left), step 1 is to double click on the axis, and on the Patterns tab, choose none for major and minor tick marks, tick labels, and axis lines. Excel 2003 Step 2 is to double click on the secondary Y axis, and on the Scale tab, uncheck Category (X) Axis Crosses At Maximum. In Excel 2007 (right), right click the axis, choose Format Axis, and on the Axis Options tab, choose None for major and minor tick mark types and tick labels, and on the Line Color tab, choose No Line. In 2007, the fill is already under the XY series despite the position of the X axis.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_6A.png" alt="XY-Area Combo Chart, Excel 2003 Step 6A" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_6.png" alt="XY-Area Combo Chart, Excel 2007 Step 6" /><br />
 <img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_6B.png" alt="XY-Area Combo Chart, Excel 2003 Step 6B" /> <img src="http://peltiertech.com/images/2009-09/ComboXYAreaBlank.png" alt="" /></p>
<p>Finally, in either version of Excel, select the secondary Y axis (right edge of the chart), and press Delete.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_7.png" alt="XY-Area Combo Chart, Excel 2003 Step 7" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_7.png" alt="XY-Area Combo Chart, Excel 2007 Step 7" /></p>
<p>Finally, remove the fill below the lower XY series (unless you want to fill multiple areas).</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYFill2003_8.png" alt="XY-Area Combo Chart, Excel 2003 Step 8" /> <img src="http://peltiertech.com/images/2009-09/ComboXYFill2007_8.png" alt="XY-Area Combo Chart, Excel 2007 Step 8" /></p>
<p><br class="spacer_" /></p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://www.exceluser.com/cmd.asp?Clk=2474005" rel="nofollow" ><IMG SRC="http://www.exceluser.com/images/info/pub/pnp468_01.jpg" ALT="Create Excel dashboards quickly with Plug-N-Play reports." WIDTH="468" HEIGHT="60" border=0></a><br />
<br /><img src="http://www.exceluser.com/cmd.asp?Imp=2474005" width="0" height="0" border="0"></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;bodytext=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;notes=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;annotation=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;submitHeadline=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;submitSummary=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-between-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Between%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;s=In%20Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20I%20introduced%20a%20technique%20for%20filling%20the%20area%20below%20an%20XY%20chart.%20This%20article%20shows%20how%20to%20extend%20that%20technique%20to%20filling%20between%20two%20XY%20series.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20that%20combines" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/fill-between-xy-chart-series-xy-area-combo-chart/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Fill Below an XY Chart Series (XY-Area Combo Chart)</title>
		<link>http://peltiertech.com/WordPress/fill-below-an-xy-chart-series-xy-area-combo-chart/</link>
		<comments>http://peltiertech.com/WordPress/fill-below-an-xy-chart-series-xy-area-combo-chart/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:00:14 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[area-xy combo]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2455</guid>
		<description><![CDATA[How can you fill the area below an XY series in an Excel chart? You can&#8217;t just use an area chart for this, because the X axis won&#8217;t work out right, and an Area chart does not provide markers, only border and fill.

The trick is to use a chart that combines XY and Area type [...]]]></description>
			<content:encoded><![CDATA[<p>How can you fill the area below an XY series in an Excel chart? You can&#8217;t just use an area chart for this, because the X axis won&#8217;t work out right, and an Area chart does not provide markers, only border and fill.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_7.png" alt="Fill the area below and XY chart series" /></p>
<p>The trick is to use a chart that combines XY and Area type series. I described this technique in <a href="http://peltiertech.com/Excel/Charts/XYAreaChart.html" rel="nofollow" >XY Area Chart: Fill Below an XY Series</a>, but that protocol doesn&#8217;t work the same in Excel 2007 as in earlier versions. Fortunately by rearranging some of the steps, a process can be designed that works for all versions of Excel, from 97 (maybe earlier) through 2007. This tutorial explains the redesigned  protocol.</p>
<p><span id="more-2455"></span>Here is the data for this example. The XY data is in columns A and B, and the area chart data in C and D. The X values of the area chart series will be plotted on a date scale which ranges from 0 to 1000 (1000 should provide plenty of resolution for a small chart). The minimum and maximum in column C are thus 0 and 1000. The other X values are scaled to the X values of the XY series, which will be scaled between 0 and 15.</p>
<p>The scaling formula in C4 is</p>
<p><tt class="tt">=INT(1000*A4/15+0.5)</tt></p>
<p>or in the general case</p>
<p><tt class="tt">=INT(1000*(A4-Xmin)/(Xmax-Xmin)+0.5)</tt></p>
<p>This formula is filled down to cell C11.</p>
<p>Cell C3 contains the formula <tt class="tt">=C4</tt>, and cell C12 contains the formula <tt class="tt">=C11</tt>.</p>
<p>The values in column D are linked to the corresponding values in column B, except for the zeros at the ends of the range. The duplicate X values produce a vertical edge in the area chart, when plotted on a date scale axis. The zeros at X=0 and X=1000 automatically scale the area chart axis, which is an improvement on the older technique.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYAreaData.png" alt="XY-Area Combo Chart Data" /></p>
<p>The protocol starts by selecting the XY data range A3:B11 and creating an area chart (not an XY chart as in the old protocol, since that gets messed up in Excel 2007). The Excel 2003 chart is shown at the left, the Excel 2007 chart at the right.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_1.png" alt="XY-Area Combo Chart, Excel 2003 Step 1" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_1.png" alt="XY-Area Combo Chart, Excel 2007 Step 1" /></p>
<p>Continue by copying the area data in C1:D13, selecting the chart, and using Paste Special to add the copied data as a new series with categories in the first column and series names in the first row.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_2.png" alt="XY-Area Combo Chart, Excel 2003 Step 2" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_2.png" alt="XY-Area Combo Chart, Excel 2007 Step 2" /></p>
<p>The area series is moved to the secondary axis. In 2003 (left), double click on the series, and on the Axis tab, choose Secondary. In 2007 (right), right click on the series, choose Format Data Series, and on the Series Options tab, choose Secondary.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_3.png" alt="XY-Area Combo Chart, Excel 2003 Step 3" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_3.png" alt="XY-Area Combo Chart, Excel 2007 Step 3" /></p>
<p>The first series is then converted to an XY type. Right click on the series, choose Chart Type, and select the XY type and subtype you want.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_4.png" alt="XY-Area Combo Chart, Excel 2003 Step 4" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_4.png" alt="XY-Area Combo Chart, Excel 2007 Step 4" /></p>
<p>Excel only adds a secondary Y axis, and we need a secondary X axis, with a date scale. In Excel 2003 (left), go to Chart menu &gt; Chart Options &gt; Axes tab, check the box in front of Secondary Category (X) Axis, and select the Time Scale option. Excel 2007 (right) requires two steps. First, on the Chart Tools &gt; Layout tab, click the Axes dropdown arrow, then Secondary Horizontal Axis, and select Show Left to Right Axis. Then right click the new axis, choose Format Axis, and under Axis Type on the Axis Options tab, select Date Axis.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_5.png" alt="XY-Area Combo Chart, Excel 2003 Step 5" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_5A.png" alt="XY-Area Combo Chart, Excel 2007 Step 5A" /><br />
 <img src="http://peltiertech.com/images/2009-09/ComboXYAreaBlank.png" alt="" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_5B.png" alt="XY-Area Combo Chart, Excel 2007 Step 5B" /></p>
<p>Now hide the secondary X axis and make sure the highlighting in under (not over) the XY series. In Excel 2003 (left), step 1 is to double click on the axis, and on the Patterns tab, choose none for major and minor tick marks, tick labels, and axis lines. Excel 2003 Step 2 is to double click on the secondary Y axis, and on the Scale tab, uncheck Category (X) Axis Crosses At Maximum. In Excel 2007 (right), right click the axis, choose Format Axis, and on the Axis Options tab, choose None for major and minor tick mark types and tick labels, and on the Line Color tab, choose No Line. In 2007, the fill is already under the XY series despite the position of the X axis.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_6A.png" alt="XY-Area Combo Chart, Excel 2003 Step 6A" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_6.png" alt="XY-Area Combo Chart, Excel 2007 Step 6" /><br />
 <img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_6B.png" alt="XY-Area Combo Chart, Excel 2003 Step 6B" /> <img src="http://peltiertech.com/images/2009-09/ComboXYAreaBlank.png" alt="" /></p>
<p>Finally, in either version of Excel, select the secondary Y axis (right edge of the chart), and press Delete.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-09/ComboXYArea2003_7.png" alt="XY-Area Combo Chart, Excel 2003 Step 7" /> <img src="http://peltiertech.com/images/2009-09/ComboXYArea2007_7.png" alt="XY-Area Combo Chart, Excel 2007 Step 7" /></p>
<p>My next post will show how to use a variation on this technique to fill between two XY series.<br class="spacer_" /></p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://www.exceluser.com/cmd.asp?Clk=2474005" rel="nofollow" ><IMG SRC="http://www.exceluser.com/images/info/pub/pnp468_01.jpg" ALT="Create Excel dashboards quickly with Plug-N-Play reports." WIDTH="468" HEIGHT="60" border=0></a><br />
<br /><img src="http://www.exceluser.com/cmd.asp?Imp=2474005" width="0" height="0" border="0"></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;bodytext=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;notes=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;annotation=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;submitHeadline=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;submitSummary=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ffill-below-an-xy-chart-series-xy-area-combo-chart%2F&amp;t=Fill%20Below%20an%20XY%20Chart%20Series%20%28XY-Area%20Combo%20Chart%29&amp;s=How%20can%20you%20fill%20the%20area%20below%20an%20XY%20series%20in%20an%20Excel%20chart%3F%20You%20can%27t%20just%20use%20an%20area%20chart%20for%20this%2C%20because%20the%20X%20axis%20won%27t%20work%20out%20right%2C%20and%20an%20Area%20chart%20does%20not%20provide%20markers%2C%20only%20border%20and%20fill.%0D%0A%0D%0A%0D%0A%0D%0AThe%20trick%20is%20to%20use%20a%20chart%20t" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/fill-below-an-xy-chart-series-xy-area-combo-chart/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>How to Build a Simple Panel Chart</title>
		<link>http://peltiertech.com/WordPress/how-to-build-a-simple-panel-chart/</link>
		<comments>http://peltiertech.com/WordPress/how-to-build-a-simple-panel-chart/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 11:00:50 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[Panel Chart]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=906</guid>
		<description><![CDATA[In Challenge &#8211; Show Market Share Changes I suggested a panel chart in response to Chandoo&#8217;s Visualization Challenge &#8211; 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 [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://peltiertech.com/WordPress/2008/11/10/challenge-show-market-share-changes/"title="Challenge - Show Market Share Changes" rel="bookmark" >Challenge &#8211; Show Market Share Changes</a> I suggested a panel chart in response to Chandoo&#8217;s <a href="http://chandoo.org/wp/2008/09/18/excel-charting-problem-how-to-show-market-share-in-2-different-periods/" rel="nofollow" title="Visualization Challenge - How to show market share changes?" >Visualization Challenge &#8211; How to show market share changes?</a> In <a href="http://peltiertech.com/WordPress/2008/11/11/explore-your-data-with-pivot-tables/"title="Explore Your Data With Pivot Tables" >Explore Your Data With Pivot Tables</a> 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.</p>
<h2 style="margin: 0pt 0pt 18px; font-size: 1em;">Panel Chart Data</h2>
<p>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.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/paneldata.png" alt="panel chart data" /></p>
<p><span id="more-906"></span>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.)</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelaxisdata.png" alt="panel chart axis data" /></p>
<h2 style="margin: 0pt 0pt 18px; font-size: 1em;">Building the Panel Chart</h2>
<p>Start by selecting the axis data and creating a column chart. I temporarily inserted values of 1 so it&#8217;s obvious what is going on. I&#8217;ve also already changed the axis and plot area lines to gray.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep01.png" alt="panel chart step 1" /></p>
<p>Clean up the chart. Since we&#8217;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.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep02.png" alt="panel chart step 2" /></p>
<p>Now I&#8217;ve removed the &#8220;1&#8243; values in the axis data range.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep03.png" alt="panel chart step 3" /></p>
<p>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.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep04.png" alt="panel chart step 4" /></p>
<p>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.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep05.png" alt="panel chart step 5" /></p>
<p>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&#8217;ll have to use the right-click approach to change it to an XY type.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep06.png" alt="panel chart step 6" /></p>
<p>Select one of the XY series (&#8216;brand1&#8242; below) and format it so it is on the primary axis.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep07.png" alt="panel chart step 7" /></p>
<p>Select the other XY series, and in Excel 2003 or prior, click F4 again. Excel 2007 users, you know the drill.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep08.png" alt="panel chart step 8" /></p>
<p>Well, that&#8217;s lines up the way we want. Let&#8217;s tidy up, shall we? First, select the legend entry for the &#8216;axis&#8217; series (the text label, not the colored rectangle), and press delete.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep09.png" alt="panel chart step 9" /></p>
<p>Add vertical (X-axis) major gridlines (Chart menu &gt; Chart Options &gt; Gridlines tab in Excel 2003, one of the contextual Chart Tools tabs in 2007). Format them the same gray as the border.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep10.png" alt="panel chart step 10" /></p>
<p>Finally, use formatting to make the brand data stick out a bit. I used brighter colors and a thicker line.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200811/panelstep11.png" alt="panel chart step 11 - done" /></p>
<p>Not too tricky. We needed a little hint about data arrangement, and one dummy series to handle the X axis labels.</p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20Build%20a%20Simple%20Panel%20Chart%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;bodytext=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;t=How%20to%20Build%20a%20Simple%20Panel%20Chart" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;notes=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;annotation=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;title=How%20to%20Build%20a%20Simple%20Panel%20Chart" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;t=How%20to%20Build%20a%20Simple%20Panel%20Chart" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;submitHeadline=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;submitSummary=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fhow-to-build-a-simple-panel-chart%2F&amp;t=How%20to%20Build%20a%20Simple%20Panel%20Chart&amp;s=In%20Challenge%20-%20Show%20Market%20Share%20Changes%20I%20suggested%20a%20panel%20chart%20in%20response%20to%20Chandoo%27s%20Visualization%20Challenge%20-%20How%20to%20show%20market%20share%20changes%3F%20In%20Explore%20Your%20Data%20With%20Pivot%20Tables%20I%20showed%20how%20a%20simple%20pivot%20table%20analysis%20could%20lead%20to%20th" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/how-to-build-a-simple-panel-chart/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clustered-Stacked Bar Charts</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/</link>
		<comments>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 15:48:32 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[bar chart]]></category>
		<category><![CDATA[clustered stacked bar chart]]></category>
		<category><![CDATA[data layout]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[stacked clustered bar chart]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690</guid>
		<description><![CDATA[



This tutorial shows how to create Clustered-Stacked Charts, including the specialized data layout needed, and the detailed combination of chart series and chart types required. This manual process takes time, can be prone to error, and becomes tedious.
I have created the Peltier Tech Cluster Stack Chart Utility to create such charts automatically from raw data. [...]]]></description>
			<content:encoded><![CDATA[<table style="border: 2px solid blue; border-spacing: 4px; border-collapse: separate; background-color: white; width: 80%; margin-left: 10%; margin-right: 10%;">
<tbody>
<tr>
<td style="padding: 3px;">
<p><img style="border-width: 0pt; margin-right: 12px; float: left;" src="http://peltiertech.com/Utility/pix/ptstileclustera.png" alt="Peltier Tech Cluster Stack Chart Utility" />This tutorial shows how to create Clustered-Stacked Charts, including the specialized data layout needed, and the detailed combination of chart series and chart types required. This manual process takes time, can be prone to error, and becomes tedious.</p>
<p>I have created the <strong>Peltier Tech Cluster Stack Chart Utility</strong> to create such charts automatically from raw data. This utility, a standard Excel add-in, lays out data in the required layout, then constructs a chart with the right combination of chart types. This is a commercial product, tested on hundreds of machines in a wide variety of configurations, which saves time and aggravation.</p>
<p>The Peltier Tech Cluster Stack Utility creates charts in either horizontal or vertical orientation.</p>
<p>Please visit the <a href="http://peltiertech.com/Utility/ClusterStackUtility.html" rel="nofollow" title="Peltier Tech Cluster Stack Chart Utility" >Peltier Tech Cluster Stack Chart Utility</a> page or the <a href="http://peltiertech.com/Utility/ClusterStackUtilityDocs.html" rel="nofollow" title="Peltier Tech Cluster Stack Chart Utility Documentation" >Peltier Tech Cluster Stack Chart Utility Documentation</a> page for more information.</p>
</td>
</tr>
</tbody>
</table>
<p><br class="spacer_" /></p>
<p><em>This is a companion article to <a href="http://peltiertech.com/WordPress/clustered-stacked-column-charts/"title="Clustered-Stacked Column Charts" >Clustered-Stacked Column Charts</a>.</em></p>
<p>Excel offers clustered bar charts and stacked bar charts among its standard options.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bclust.png" alt="Clustered Bar Chart" /><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bstack.png" alt="Stacked Bar Chart" /></p>
<p style="text-align: left;">A common request is to make a bar chart where the bars are clustered together, while one or more of the clustered bars are divided into sections stacked on top of each other. This isn&#8217;t built into Excel, but by rearranging the worksheet data, it can be constructed readily.<span id="more-690"></span></p>
<p>Suppose we have the simple data below, with four series of data over three months. One series is to be by itself in the top bar of the cluster, and three series stacked on the bottom.</p>
<p style="text-align: center;"><img title="Clustered Bar Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/clustackdata01.png" alt="Clustered Bar Chart Data" /></p>
<p>We can select this data and create a clustered bar chart</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck01.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>or a stacked bar chart</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck02.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>But however we try to arrange series, we cannot achieve a clustered-stacked bar chart.</p>
<p>If we keep our wits about us, we can envision a worksheet arrangement that will give us what we want. We need a gap, one series stacked in the first filled slot, three series stacked in the second slot, then another gap, and the pattern repeats. So this is really a stacked chart. Where we have gaps, the series have zero values; where one series is alone, the others have zero values; where the three series are stacked, the other has a zero. This new arrangement is shown below. Gaps in the data occur at columns B, E, H, and K. The left column of each cluster has data in columns C, F, and I; the right column in D, G, and J. For clarity in this exercise, I&#8217;ve duplicated the column letters in the category labels range (B7:K7, tan). The top left cell (A7) is blank.</p>
<p style="text-align: center;"><img title="Clustered Bar Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/clustackdata02.png" alt="Clustered Bar Chart Data" /></p>
<p>Select this range and create a stacked bar chart. It&#8217;s halfway done, we just need some formatting. To get the categories in top-down order, format the category (X) axis scale so that the categories are in reverse order and the value (Y) axis crosses at the maximum category.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck03.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Change the gap width of any series to zero, and it looks almost done.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck04.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>The axis labels aren&#8217;t right, though. We need the months centered between existing labels, for example, &#8220;Alpha&#8221; between the current positions of &#8220;C&#8221; and &#8220;D&#8221;. This simple data works; note its arrangement parallels the original data. I&#8217;ve used 10 for the values so the bars show up in the charts. When I finish I&#8217;ll change the values to zero.</p>
<p style="text-align: center;"><img title="Clustered Bar Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200810/clustackdata04.png" alt="Clustered Bar Chart Data" /></p>
<p>Here is what the chart&#8217;s axis should look like when we&#8217;re done:</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck05.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Copy the data in F1:I2, select the chart, and use Paste Special to add the data as a new series, with data in rows, category labels in the first row (we&#8217;ll have to reapply this later), and series names in the first column. The data is stacked on top of the first three categories.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck06.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>What we need to do is put the axis series on the primary axis and the stacked data series onto the secondary axis (if we reverse this, we will have problems displaying the Alpha-Beta-Gamma axis labels). Select one of the series, and move it to the secondary axis. I usually move the lowest valued series first (Right 3 in this example) so that the secondary axis series don&#8217;t obscure the primary series I need to select and move next.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck07.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>In turn, select and move all of the Left and Right series to the secondary axis. I&#8217;ve changed the gap width of the Axis series to 50% (from zero) to make it easier to follow. The Left and Right series are clustered, not stacked, because that&#8217;s Excel&#8217;s default bar chart variation.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck08.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Select one of the secondary axis series, and change its chart type to stacked. All bar series on that axis will follow suit. Also, change the gap width of a secondary axis series to zero.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck09.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Excel has given us a secondary value (Y) axis, but we only have the primary category (X) axis. Using Chart menu &gt; Chart Options &gt; Axes tab, or in Excel 2007, the Chart Tools &gt; Layout tab, to add the secondary axis to the chart. At first, we don&#8217;t have the appropriate names as our labels, because Excel applied the existing labels (B through K) to all series.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck09a.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Edit the series source data or the series formula for the Axis series, so that the months in G1:I1 are used for category labels.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck10.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Almost done. The month names are not centered correctly next to the clustered bars. Format the scale of the secondary category axis (B through K at the right of the chart) so that the value axis does not cross between categories.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck11.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Perfectly aligned. Now format the secondary category axis to display no tick labels and no tick marks.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck12.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Use Chart menu &gt; Chart Options &gt; Axes tab or Ribbon &gt; Chart Tools &gt; Layout tab to remove the secondary value (Y) axis (or select it and press Delete). Format the Axis series on the secondary axis so that it has no fill. Change the Axis series values in G2:I2 from 10 to zero. Select the legend, then select the Axis legend entry, and hide it by pressing Delete.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/bluck13.png" alt="Clustered Bar Chart" width="384" height="214" /></p>
<p>Not too complicated, and it shows exactly what we want.</p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Clustered-Stacked%20Bar%20Charts%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts&amp;bodytext=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;t=Clustered-Stacked%20Bar%20Charts" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts&amp;notes=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts&amp;annotation=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;title=Clustered-Stacked%20Bar%20Charts" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;t=Clustered-Stacked%20Bar%20Charts" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Clustered-Stacked%20Bar%20Charts&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;submitHeadline=Clustered-Stacked%20Bar%20Charts&amp;submitSummary=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-bar-charts%2F&amp;t=Clustered-Stacked%20Bar%20Charts&amp;s=%0D%0A%0D%0A%0D%0AThis%20tutorial%20shows%20how%20to%20create%20Clustered-Stacked%20Charts%2C%20including%20the%20specialized%20data%20layout%20needed%2C%20and%20the%20detailed%20combination%20of%20chart%20series%20and%20chart%20types%20required.%20This%20manual%20process%20takes%20time%2C%20can%20be%20prone%20to%20error%2C%20and%20becomes%20" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Clustered-Stacked Column Charts with Vertical Separators</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-column-charts-with-vertical-separators/</link>
		<comments>http://peltiertech.com/WordPress/clustered-stacked-column-charts-with-vertical-separators/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 20:42:34 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[clustered stacked column chart]]></category>
		<category><![CDATA[data layout]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[Panel Chart]]></category>
		<category><![CDATA[stacked clustered column chart]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=599</guid>
		<description><![CDATA[One of my most popular blog posts of all times is Clustered-Stacked Column Charts. This post has received the most visits and is the most heavily commented post I&#8217;ve written. One reader wants to know how to add vertical lines between the clusters. This is an adaptation of the technique in Add a Vertical Line [...]]]></description>
			<content:encoded><![CDATA[<p>One of my most popular blog posts of all times is <a href="http://peltiertech.com/WordPress/clustered-stacked-column-charts/"title="Clustered-Stacked Column Charts" >Clustered-Stacked Column Charts</a>. This post has received the most visits and is the most heavily commented post I&#8217;ve written. One reader wants to know how to add vertical lines between the clusters. This is an adaptation of the technique in <a href="http://peltiertech.com/Excel/Charts/AddLineVertErrBar.html" rel="nofollow" title="Add a Vertical Line to a Column or Line Chart: Error Bar Method" >Add a Vertical Line to a Column or Line Chart: Error Bar Method</a>. I&#8217;ll rebuild the clustered stacked chart, then add the lines.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert05.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Suppose we have the simple data below, with four series of data over three months. One series is to be by itself in the left column of the cluster, and three series stacked on the right.</p>
<p style="text-align: center;"><img title="Clustered Column Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/clustackdata01.png" alt="Clustered Column Chart Data" /></p>
<p><span id="more-599"></span>We can select this data and create a clustered column chart</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck01.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>or a stacked column chart</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck02.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>But however we try to arrange series, we cannot achieve a clustered-stacked chart.</p>
<p>If we keep our wits about us, we can envision a worksheet arrangement that will give us what we want. We need a gap, one series stacked in the first filled slot, three series stacked in th second slot, then another gap, and the pattern repeats. So this is really a stacked chart. Where we have gaps, the series have zero values; where one series is alone, the others have zero values; where the three series are stacked, the other has a zero. This new arrangement is shown below. Gaps in the data occur at columns B, E, H, and K. The left column of each cluster has data in columns C, F, and I; the right column in D, G, and J. For clarity in this exercise, I&#8217;ve duplicated the column letters in the category labels range (B7:K7, tan). The top left cell (A7) is blank.</p>
<p style="text-align: center;"><img title="Clustered Column Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/clustackdata02.png" alt="Clustered Column Chart Data" /></p>
<p>Select this range and create a stacked column chart. It&#8217;s halfway done, we just need some formatting.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck03.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Change the gap width of any series to zero, and it looks almost done.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck04.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>The axis labels aren&#8217;t right, though. We need the months centered between existing labels, for example, &#8220;Jan&#8221; between the current positions of &#8220;C&#8221; and &#8220;D&#8221;. This simple data works; note its arrangement parallels the original data. I&#8217;ve used 10 for the values so the bars show up in the charts. When I finish I&#8217;ll change the values to zero.</p>
<p style="text-align: center;"><img title="Clustered Column Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/clustackdata03.png" alt="Clustered Column Chart Data" /></p>
<p>Here is what the chart&#8217;s axis should look like when we&#8217;re done:</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck05.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Copy the data in F1:I2, select the chart, and use Paste Special to add the data as a new series, with data in rows, category labels in the first row (we&#8217;ll have to reapply this later), and series names in the first column. The data is stacked on top of the first three categories.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck06.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>What we need to do is put the axis series on the primary axis and the stacked data series onto the secondary axis (if we reverse this, we will have problems displaying the Jan-Feb-Mar axis labels). Select one of the series, and move it to the secondary axis. I usually move the lowest valued series first (Right 3 in this example) so that the secondary axis series don&#8217;t obscure the primary series I need to select and move next.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck07.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>In turn, select and move all of the Left and Right series to the secondary axis. I&#8217;ve changed the gap width of the Axis series to 100% (from zero) to make it easier to follow. The Left and Right series are clustered, not stacked, because that&#8217;s Excel&#8217;s default column chart variation.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck08.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Select one of the secondary axis series, and change its chart type to stacked. All column series on that axiss will follow suit. Also, change the gap width of a secondary axis column to zero.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck09.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Excel has given us a secondary value (Y) axis, but we only have the primary category (X) axis. Using Chart menu &gt; Chart Options &gt; Axes tab, or in Excel 2007, the Chart Tools &gt; Layout tab, to add the secondary axis to the chart. At first, we don&#8217;t have the month names as our labels, because Excel applied the existing labels (B through K) to all series.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck09a.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Edit the series source data or the series formula for the Axis series, so that the months in G1:I1 are used for category labels.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck10.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Almost done. The month names are not centered correctly under the clustered columns. Format the scale of the secondary category axis (B through K at the top of the chart) so that the value axis does not cross between categories.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck11.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Perfectly aligned. Now format the secondary category axis to display no tick labels and no tick marks.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck12.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Use Chart menu &gt; Chart Options &gt; Axes tab or Ribbon &gt; Chart Tools &gt; Layout tab to remove the secondary value (Y) axis (or select it and press Delete). Format the Axis series on the secondary axis so that it has no fill. Change the Axis series values in G2:I2 from 10 to zero. Select the legend, then select the Axis legend entry, and hide it by pressing Delete.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck13.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p><strong>Adding Vertical Lines &#8211; The Easy Way</strong></p>
<p>As Andy Pope pointed out in his comment, there&#8217;s a very easy way to add vertical lines between the main categories. Since the categories are on the primary X axis, we can add major gridlines to this axis. Right click on the chart, choose Chart Options, click on Gridlines, and check Major Gridlines under Category (X) Axis.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert05.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p><strong>Adding Vertical Lines &#8211; </strong><strong>The Hard Way</strong></p>
<p>To add the vertical lines the hard way (as I originally posted), we first will add a series of points along the lower edge of the chart. This will be an XY type series, and we will apply vertical error bars. The data for this series is as follows. Jan is at 1, Feb is at 2, and Mar is at 3; we want points between these positions, so we need X values of 1.5 and 2.5. The Y values are zero so the points lie along the horizontal axis.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert00.png" alt="Clustered Column Chart" /></p>
<p>Copy the range K1:M2, select the chart, and use Paste Special to add the data as a new series, with data in rows, categories in the first row, and series names in the first column. The data is first added as another stacked column series, with zero height, so it&#8217;s not visible.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert01.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Select the Verticals series (perhaps by selecting a visible series and using the arrow keys to cycle among the series in the chart), and from the Chart menu, click on Chart Type, then select an XY type. I chose the type&nbsp; with markers and lines just to be visible in this example.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert02.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>If you look closely, you can see that the secondary category axis has changed, moving the outer clusters closer to the center. Select the secondary category axis (I used the Chart Element dropdown on the Chart toolbar), on the Format menu, choose Selected Axis, and on the Scale tab, uncheck the box for Value (Y) Axis Crosses Between Categories.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert03.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>That&#8217;s better. Now double click the Verticals series, click on the Y Error Bars tab, click on the positive error bar icon, and enter a value of 70. If the Y axis has an automatic scale, it will change to 80, so it reaches higher than the error bars, so you will have to enter 70 as the axis maximum for the Y axis.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert04.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Now hide the Verticals series by formatting it with no markers and no lines. Select the legend, then select the Verticals legend entry, and press Delete.</p>
<p align="center"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200810/cluckvert05.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Now you have the vertical separation between months of data. In fact, this is a <a href="http://peltiertech.com/Excel/ChartsHowTo/PanelChart1.html" rel="nofollow" >panel</a> <a href="http://peltiertech.com/Excel/ChartsHowTo/PanelUnevenScales.html" rel="nofollow" >chart</a>.</p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;bodytext=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;t=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;notes=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;annotation=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;t=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;submitHeadline=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;submitSummary=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-charts-with-vertical-separators%2F&amp;t=Clustered-Stacked%20Column%20Charts%20with%20Vertical%20Separators&amp;s=One%20of%20my%20most%20popular%20blog%20posts%20of%20all%20times%20is%20Clustered-Stacked%20Column%20Charts.%20This%20post%20has%20received%20the%20most%20visits%20and%20is%20the%20most%20heavily%20commented%20post%20I%27ve%20written.%20One%20reader%20wants%20to%20know%20how%20to%20add%20vertical%20lines%20between%20the%20clusters.%20Th" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/clustered-stacked-column-charts-with-vertical-separators/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Radar-XY Combination Chart</title>
		<link>http://peltiertech.com/WordPress/radar-xy-combination-chart/</link>
		<comments>http://peltiertech.com/WordPress/radar-xy-combination-chart/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:40:01 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[trig]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=323</guid>
		<description><![CDATA[In Plot your data around the clock, Chandoo proposed a complicated bubble chart to show website traffic vs. time of day.

I thought it was daring of Chandoo to try such a unique treatment of the data, but I found the bubbles difficult to interpret, and it was distracting that I had to look from chart [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://chandoo.org/wp/2008/08/14/plot-time-series-data-excel/" rel="nofollow" title="Plot your data around the clock" >Plot your data around the clock</a>, <a href="http://chandoo.org/wp/" rel="nofollow" title="Pointy-Haired Dilbert" >Chandoo</a> proposed a complicated bubble chart to show website traffic vs. time of day.</p>
<p align="center"><img title="Chandoo's Double Bubble Chart Around the Clock" src="http://peltiertech.com/WordPress/wp-content/img200808/RockAroundTheClock1.png" alt="Chandoo's Double Bubble Chart Around the Clock" width="449" height="255" /></p>
<p>I thought it was daring of Chandoo to try such a unique treatment of the data, but I found the bubbles difficult to interpret, and it was distracting that I had to look from chart to chart to try to see the whole picture. My complete review of Chandoo&#8217;s chart is in <a href="http://peltiertech.com/WordPress/2008/08/14/rock-around-the-clock/"title="Rock Around The Clock" >Rock Around The Clock</a>.<span id="more-323"></span></p>
<p><a href="http://charts.jorgecamoes.com/" rel="nofollow" title="Jorge Camoes' Charts" >Jorge Camoes</a> has chimed in with a radar chart solution in <a href="http://charts.jorgecamoes.com/charting-around-the-clock/" rel="nofollow" title="Charting around the clock" >Charting around the clock</a>.</p>
<p align="center"><img title="Jorge Camoes' Curator's Egg Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/jorge-pageviews-day-night.png" alt="Jorge Camoes' Curator's Egg Chart" /></p>
<p>Jorge&#8217;s chart prevented the side to side motion needed to see the entire picture, but it does not show where the lines join to make a 24-hour record of the data.</p>
<p><em><strong>Note:</strong> This chart is a novelty, and is not as good at representing the data clearly as a line chart would be. It&#8217;s really only effective at showing the difference between pairs of points 12 hours apart, the AM and PM values. This chart type cannot effectively show trends or compare values an hour or more apart. For effective data presentation, stick to line charts.</em></p>
<p>I created my own 12-hour circular graphic, which addresses my conceptual problems with the charts shown thus far. It’s actually a combination radar-XY chart, using the radar to reproduce Jorge’s nice Roman-numeral clock face, and the XY series uses Chandoo’s trig algorithms to locate the actual data.</p>
<p align="center"><img title="Jon's Alternative Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RockAroundTheClock4.png" alt="Jon's Alternative Radar-XY Combination Chart" /></p>
<p>I presented this chart in <a href="http://peltiertech.com/WordPress/2008/08/14/rock-around-the-clock/"title="Rock Around The Clock" >Rock Around The Clock</a>, but I did not show how I made it. This post has instructions.</p>
<p><em><strong>Radar-XY Combination Chart Data</strong></em></p>
<p>The chart has two blocks of data. The first block in columns A and B consists of data that drives the labeling of the chart numbers. I&#8217;ve used Jorge&#8217;s Roman numerals for the time labels in column A (the category labels of the radar chart), and the values of 160 in column B correspond to the maximum value in the chart.</p>
<p>The data in Columns D through H are used in the XY series. The time in column D is the time in hours, with 0-11 AM followed by 0-11 PM. The radius (column E) is the set of values to be plotted radially from the center of the chart. We accomplish this in an XY chart by converting the angle and radius to X-Y coordinates. The angle goes from 0 to 360 degrees (0 to 2 PI) from 0 to 12 hours. Columns F and G contain trig functions to handle this conversion. Cell F2 has this formula:</p>
<pre class="vba">=E2*SIN(D2/6*PI())
 </pre>
<p>Cell G2 has this formula:</p>
<pre class="vba">=E2*COS(D2/6*PI())
 </pre>
<p>These formuas are filled down to row 26. Note that the first point is repeated at the end of the table: while the radar chart automatically connects the first and last points, an XY chart does not assume that the points trace a circuit.</p>
<p>Column H contains labels which will be applied to selected points.</p>
<p align="center"><img title="Radar-XY Combination Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXYData.png" alt="Radar-XY Combination Chart Data" /></p>
<p><em><strong>Creating the Radar-XY Combination Chart </strong></em></p>
<p>Start by selecting A1:B13, and create a radar chart. The data traces the circumference of the chart. I&#8217;ve changed the axis spacing from 20 to 40, because there were too many gridlines.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY01.png" alt="Radar-XY Combination Chart" /></p>
<p>This appearance of the radial spokes and circumferential is reminiscent of a spider&#8217;s web, so radar charts are also known as spider charts.</p>
<p>Change the gridline and axis (spoke) line color to very light gray. Change the data series and the axis labels to a medium gray, so these features will not overwhelm your plotted data.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY02.png" alt="Radar-XY Combination Chart" /></p>
<p>Select and copy F1:G26, select the chart, and use Paste Special to add the data as a new series. Excel adds it as another radar series. Since it has 24 points, the series changes the chart so that it has 24 spokes, and the first series covers only half of the chart.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY03.png" alt="Radar-XY Combination Chart" /></p>
<p>Right click the new series, choose Chart Type, and select an XY chart type. Excel plots the XY series on the secondary axes, and adds secondary X and Y axes to the chart.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY04.png" alt="Radar-XY Combination Chart" /></p>
<p>Change the secondary X and Y axes so that both have a minimum of -160, a maximum of 160, a major unit of 40, and the matching axis crosses at zero. The axes are coincident with the axis of the radar chart.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY05.png" alt="Radar-XY Combination Chart" /></p>
<p>Finally, format the secondary X and Y axis to be invisible: no line, no ticks, and no tick labels.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY06.png" alt="Radar-XY Combination Chart" /></p>
<p>If you just want to show the 24 hour cycle, you can stop here. To help clarify the chart, I added some labels to selected points, showing the corresponding time, using <a href="http://appspro.com" rel="nofollow" title="Applications Professionals" >Rob Bovey&#8217;s</a> <a href="http://appspro.com/Utilities/ChartLabeler.htm" rel="nofollow" title="Chart Labeler" >Chart Labeler</a>.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY07.png" alt="Radar-XY Combination Chart" /></p>
<p>You may want to show the daytime data points with different formatting. You can individually format the particular points, but I prefer to add a new series, so I can edit formatting in one step instead of one step per point. Copy F10:G21, select the chart, and use Paste Special as before to add the data as a new series.</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY08.png" alt="Radar-XY Combination Chart" /></p>
<p>Apply the desired formatting to the daytime series</p>
<p align="center"><img title="Radar-XY Combination Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/RadarXY09.png" alt="Radar-XY Combination Chart" /></p>
<p>Download <a href="http://peltiertech.com/WordPress/wp-content/img200808/RadarXYAroundTheClock.zip"title="RadarXYAroundTheClock.zip" >RadarXYAroundTheClock.zip</a> to see a workbook that shows these steps.</p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Radar-XY%20Combination%20Chart%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart&amp;bodytext=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;t=Radar-XY%20Combination%20Chart" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart&amp;notes=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart&amp;annotation=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;title=Radar-XY%20Combination%20Chart" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;t=Radar-XY%20Combination%20Chart" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Radar-XY%20Combination%20Chart&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;submitHeadline=Radar-XY%20Combination%20Chart&amp;submitSummary=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fradar-xy-combination-chart%2F&amp;t=Radar-XY%20Combination%20Chart&amp;s=In%20Plot%20your%20data%20around%20the%20clock%2C%20Chandoo%20proposed%20a%20complicated%20bubble%20chart%20to%20show%20website%20traffic%20vs.%20time%20of%20day.%0D%0A%0D%0A%0D%0A%0D%0AI%20thought%20it%20was%20daring%20of%20Chandoo%20to%20try%20such%20a%20unique%20treatment%20of%20the%20data%2C%20but%20I%20found%20the%20bubbles%20difficult%20to%20interp" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/radar-xy-combination-chart/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Clustered-Stacked-Column Combo Chart With Lines</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-column-combo-chart-with-lines/</link>
		<comments>http://peltiertech.com/WordPress/clustered-stacked-column-combo-chart-with-lines/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 16:45:10 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[clustered stacked column chart]]></category>
		<category><![CDATA[Formatting]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=214</guid>
		<description><![CDATA[Excel offers clustered column charts and stacked column charts among its standard options.

A common request is for a clustered-stacked column chart where the columns are clustered together, while one or more of the clustered columns are divided into sections stacked on top of each other. This isn&#8217;t built into Excel, but by rearranging the worksheet [...]]]></description>
			<content:encoded><![CDATA[<p>Excel offers clustered column charts and stacked column charts among its standard options.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/clust.png" alt="Clustered Column Chart" width="256" height="136" /><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/stack.png" alt="Stacked Column Chart" width="256" height="136" /></p>
<p style="text-align: left;">A common request is for a clustered-stacked column chart where the columns are clustered together, while one or more of the clustered columns are divided into sections stacked on top of each other. This isn&#8217;t built into Excel, but by rearranging the worksheet data, it can be constructed readily.</p>
<p style="text-align: left;">In <a href="http://peltiertech.com/WordPress/clustered-stacked-column-charts/">Clustered-Stacked Column Charts</a> I showed how to construct such a chart.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200805/cluck13.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>But now I&#8217;ve been asked to extend the combination to include a set of lines on the secondary vertical axis.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo10a.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p><span id="more-214"></span></p>
<p>Suppose we have the simple data below, with four series of data over three months. One series is to be by itself in the left column of the cluster, and three series stacked on the right.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterComboData1.png" alt="Clustered Column Chart Data" /></p>
<p>Following the rationale in  <a href="http://peltiertech.com/WordPress/clustered-stacked-column-charts/">Clustered-Stacked Column Charts</a>, the data must be rearranged to the following format, so all of the columns will be positioned as desired.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterComboData2.png" alt="Clustered Column Chart Data" /></p>
<p>Select this range and create a stacked column chart. It&#8217;s halfway done, we just need some formatting.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo01.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Change the gap width of any series to zero, and it looks almost done.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo02.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>In  <a href="http://peltiertech.com/WordPress/clustered-stacked-column-charts/">Clustered-Stacked Column Charts</a>, we used a dummy series to make the category axis labels look right. To add a set of lines which are cenetered on each cluster of columns, we will use the same approach. Here is the data for the line series. This simple data works; note its arrangement parallels the original data.</p>
<p style="text-align: center;"><img style="border: 0pt none ;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterComboData3.png" alt="Clustered Column Chart Data" /></p>
<p>Here is what the chart&#8217;s axis should look like when we&#8217;re done:</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo02a.png" alt="Clustered Column Chart" width="384" height="99" /></p>
<p>Copy the data in F1:I3, select the chart, and use Paste Special to add the data as a new series, with data in rows, category labels in the first row (we&#8217;ll have to reapply this later), and series names in the first column. The data is stacked on top of the first three categories.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo03.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>What we need to do is put the line series on the primary axis and the stacked column series onto the secondary axis (if we reverse this, we will have problems displaying the Jan-Feb-Mar axis labels).  Select one of the series, and move it to the secondary axis. I usually move the lowest valued series first (B3 in this example) so that the secondary axis series don&#8217;t obscure the primary series I need to select and move next.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo04.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>In turn, select and move all of the A and B column series to the secondary axis. The A and B series are clustered, not stacked, because that&#8217;s Excel&#8217;s default column chart variation.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo05.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Select one of the secondary axis series, and change its chart type to stacked. All column series on that axiss will follow suit. Also, change the gap width of a secondary axis column to zero.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo06.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Excel has given us a secondary value (Y) axis, but we only have the primary category (X) axis. Using Chart menu &gt; Chart Options &gt; Axes tab, or in Excel 2007, the Chart Tools &gt; Layout tab, to add the secondary axis to the chart. At first, we don&#8217;t have the month names as our labels, because Excel applied the existing labels (B through K) to all series.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo07.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Edit the series source data or the series formula for the Axis series, so that the months in G1:I1 are used for category labels.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo08.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>The stacked column Y axis (secondary) is along the right edge of the chart, and the line Y axis (primary) is along the left. We want to switch these axes. Format the secondary X axis (top) so that the Value Y Axis does not cross at the maximum category (uncheck the box). Then format the primary X axis (bottom) so that the Value Y Axis does cross at the maximum category (check the box).</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo08a.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Almost done. The month names are not centered correctly under the clustered columns. Format the scale of the secondary category axis (B through K at the top of the chart) so that the value axis does not cross between categories.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo09.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Perfectly aligned. Now convert one of the line series from a column to to a line style.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo09a.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Repeat for the other line series.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo09b.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>Now format the secondary category axis (B to K along the top of the chart) to display no tick labels and no tick marks. Adjust the plot area width so the legend does not obscure the Y axis labels.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo10.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>You may want to reposition the legend.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo10a.png" alt="Clustered Column Chart" width="384" height="214" /></p>
<p>This chart illustrates a problem with secondary axes, which <a href="http://www.perceptualedge.com/" rel="nofollow" title="Perceptual Edge" >Stephen Few</a> wrote about in  <a href="http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf" rel="nofollow" >Dual-Scaled Axes in Graphs-Are They Ever the Best Solution?</a>, and which I followed up in <a href="http://peltiertech.com/WordPress/secondary-axes-in-charts-2/"title="Secondary Axes in Charts" >Secondary Axes in Charts</a>. The problem is twofold. First, having the primary and secondary series overlapping in the same chart space makes it unclear which series corresponds to which axes. Second, it is impossible to separate the primary and secondary series visually. For example, although the lines and columns are independent, the red line seems to match with the green column at the endpoints but with the blue column in the middle.</p>
<p>These problems can be avoided by using two separate charts, or if you&#8217;re a bit more adventurous, by creating a <a href="http://peltiertech.com/Excel/ChartsHowTo/PanelUnevenScales.html" rel="nofollow" title="Panel Charts" >panel chart</a>.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo11.png" alt="Panel Chart" width="384" height="214" /></p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo12.png" alt="Panel Chart" width="384" height="214" /></p>
<p>Arranging the chart that way without changing its height shortens the vertical scales, reducing resolution of the axes. The legend can be moved and the chart made taller and narrower.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo13.png" alt="Panel Chart" width="320" height="255" /></p>
<p>This illustrates a problem with chart legends. First, they force the reader to move his eyes between the charted data and the legend. Second, in this case, the legend is completely out of order compared to the plotted points. It is usually better to use data labels right in the chart.</p>
<p style="text-align: center;"><img style="border: 0pt none;" src="http://peltiertech.com/WordPress/wp-content/img200808/ClusterCombo14.png" alt="Panel Chart" width="256" height="272" /></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;bodytext=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;t=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;notes=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;annotation=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;t=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;submitHeadline=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;submitSummary=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fclustered-stacked-column-combo-chart-with-lines%2F&amp;t=Clustered-Stacked-Column%20Combo%20Chart%20With%20Lines&amp;s=Excel%20offers%20clustered%20column%20charts%20and%20stacked%20column%20charts%20among%20its%20standard%20options.%0D%0A%0D%0A%0D%0A%0D%0AA%20common%20request%20is%20for%20a%20clustered-stacked%20column%20chart%20where%20the%20columns%20are%20clustered%20together%2C%20while%20one%20or%20more%20of%20the%20clustered%20columns%20are%20divide" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/clustered-stacked-column-combo-chart-with-lines/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Adding an Arbitrary Target</title>
		<link>http://peltiertech.com/WordPress/adding-an-arbitrary-target/</link>
		<comments>http://peltiertech.com/WordPress/adding-an-arbitrary-target/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 11:59:46 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Combination Charts]]></category>
		<category><![CDATA[Chart Types]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[Target]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=191</guid>
		<description><![CDATA[In yesterday&#8217;s post, Add a Target Line, I showed how to add a simple horizontal line target indicator to a chart. What if your target isn&#8217;t constant. I&#8217;m not talking about your boss&#8217; moving target, but a case illustrated by the following dummy data. Our company makes widgets, which are more popular in spring and [...]]]></description>
			<content:encoded><![CDATA[<p>In yesterday&#8217;s post, <a href="http://peltiertech.com/WordPress/2008/07/29/add-a-target-line/"class="simple_alink" title="Add a Target Line" >Add a Target Line</a>, I showed how to add a simple horizontal line target indicator to a chart. What if your target isn&#8217;t constant. I&#8217;m not talking about your boss&#8217; moving target, but a case illustrated by the following dummy data. Our company makes widgets, which are more popular in spring and summer, as well as at the year end holidays. Most of the year our target is 20 units, but from April through August the target is 25, and in December we aim for 30 units.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtargetdata.png" alt="" /></p>
<p>We could simply create a line chart to show both the target and actual values. However, the target looks too much like the actuals, and we&#8217;d like them to look more different, so they can be distinguished at a glance.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget01.png" alt="" /></p>
<p><span id="more-191"></span>The two lines are even more difficult to distinguish when the chart is shrunk to typical dashboard chart dimensions.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget02.png" alt="" /></p>
<p>One way to distinguish the two series is to right click on the target series, choose Chart Type, and select an area type. Note that this moves the January and December data points to the edges of the chart.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget06.png" alt="" /></p>
<p>A lighter target series fill color helps emphasize the actual values.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget07.png" alt="" /></p>
<p>We can even dispense with the colors and switch to grays for improved photocopying results, or actually choose any color scheme that isn&#8217;t overpowering.&nbsp;</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget08.png" alt="" /></p>
<p>Another approach is to convert the target series to a column chart.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget03.png" alt="" /></p>
<p>We can reduce the gap width to zero, and choose a lighter color, to de-emphasize the target.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget04.png" alt="" /></p>
<p>The gray scheme from above works well for the column chart variant too.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget05.png" alt="" /></p>
<p>The chart can be improved further by removing axis lines, applying a gap width of 5 to the columns, and pulling the month labels inside the bottoms of the bars to expand the vertical scale. (Excel doesn&#8217;t allow axis tick marks without the axis line, so I added an XY series with no line or markers but with short error bars.)</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget09.png" alt="" /></p>
<p>We can shrink the charts even further (the following are narrower but slightly taller). The dual line chart is no better than in the larger sizes.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget10.png" alt="" /></p>
<p>The area and both column versions of the target series work well.</p>
<p align="center"><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget12.png" alt="" /><span style="color: white;"> &#8211; - </span><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget11.png" alt="" /><span style="color: white;"> &#8211; - </span><img src="http://peltiertech.com/WordPress/wp-content/img200807/dashtarget13.png" alt="" /></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Adding%20an%20Arbitrary%20Target%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target&amp;bodytext=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;t=Adding%20an%20Arbitrary%20Target" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target&amp;notes=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target&amp;annotation=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;title=Adding%20an%20Arbitrary%20Target" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;t=Adding%20an%20Arbitrary%20Target" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Adding%20an%20Arbitrary%20Target&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;submitHeadline=Adding%20an%20Arbitrary%20Target&amp;submitSummary=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadding-an-arbitrary-target%2F&amp;t=Adding%20an%20Arbitrary%20Target&amp;s=In%20yesterday%27s%20post%2C%20Add%20a%20Target%20Line%2C%20I%20showed%20how%20to%20add%20a%20simple%20horizontal%20line%20target%20indicator%20to%20a%20chart.%20What%20if%20your%20target%20isn%27t%20constant.%20I%27m%20not%20talking%20about%20your%20boss%27%20moving%20target%2C%20but%20a%20case%20illustrated%20by%20the%20following%20dummy%20data.%20" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/adding-an-arbitrary-target/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
