<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Clustered-Stacked Bar Charts</title>
	<atom:link href="http://peltiertech.com/WordPress/clustered-stacked-bar-charts/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/</link>
	<description>PTS Excel Charts and Tutorials Blog</description>
	<lastBuildDate>Sat, 21 Nov 2009 04:01:08 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-18646</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 02 Sep 2009 01:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-18646</guid>
		<description>Ken -

Don&#039;t even add the bar chart series with the alpha-beta-gamma labels. Instead of these bars, you will need to build a set of secondary X and Y axes that will work with the XY series. The X axis will have the same scale as the Y (horizontal) axis of the bar chart, and the Y axis will simply scale from 0 to 1.

You need to change the data range for the axis series:

G1:I1 - keep category labels
G2:I2 - fill with zero values
G3:I3 - insert a fraction corresponding to the height of the label**

**For example, &quot;alpha&quot; is the third label from the bottom (let i=3), and there are a total of 3 labels (N=3). The fraction is

(i-0.5)/N

So the fractions for alpha, beta, and gamma are 0.83333, 0.5, and 0.16667.

Clear F2 and put the &quot;axis&quot; label into F3.

Copy F2:I3, select the chart, paste special to add the data as a new series, data in rows, categories in first row, series names in first column. It is added as a bar chart series, but when you change it to an XY type, Excel adds the secondary X and Y axes, and you need to rescale tham as I&#039;ve described above. Repeat the copy-paste special with the data to add the target line as described in &lt;a href=&quot;http://peltiertech.com/Excel/Charts/AddLineVertSeries.html&quot; rel=&quot;nofollow&quot;&gt;Add a Vertical Line to a Column or Line Chart: Series Method&lt;/a&gt; or in &lt;a href=&quot;http://peltiertech.com/Excel/Charts/AddLineVertErrBar.html&quot; rel=&quot;nofollow&quot;&gt;Add a Vertical Line to a Column or Line Chart: Error Bar Method&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Ken -</p>
<p>Don&#8217;t even add the bar chart series with the alpha-beta-gamma labels. Instead of these bars, you will need to build a set of secondary X and Y axes that will work with the XY series. The X axis will have the same scale as the Y (horizontal) axis of the bar chart, and the Y axis will simply scale from 0 to 1.</p>
<p>You need to change the data range for the axis series:</p>
<p>G1:I1 &#8211; keep category labels<br />
G2:I2 &#8211; fill with zero values<br />
G3:I3 &#8211; insert a fraction corresponding to the height of the label**</p>
<p>**For example, &#8220;alpha&#8221; is the third label from the bottom (let i=3), and there are a total of 3 labels (N=3). The fraction is</p>
<p>(i-0.5)/N</p>
<p>So the fractions for alpha, beta, and gamma are 0.83333, 0.5, and 0.16667.</p>
<p>Clear F2 and put the &#8220;axis&#8221; label into F3.</p>
<p>Copy F2:I3, select the chart, paste special to add the data as a new series, data in rows, categories in first row, series names in first column. It is added as a bar chart series, but when you change it to an XY type, Excel adds the secondary X and Y axes, and you need to rescale tham as I&#8217;ve described above. Repeat the copy-paste special with the data to add the target line as described in <a href="http://peltiertech.com/Excel/Charts/AddLineVertSeries.html" rel="nofollow">Add a Vertical Line to a Column or Line Chart: Series Method</a> or in <a href="http://peltiertech.com/Excel/Charts/AddLineVertErrBar.html" rel="nofollow">Add a Vertical Line to a Column or Line Chart: Error Bar Method</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Stern</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-18638</link>
		<dc:creator>Ken Stern</dc:creator>
		<pubDate>Tue, 01 Sep 2009 21:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-18638</guid>
		<description>Jon -
Love the site as always and this is a great tutorial.

Following up on your comment to Chris above, I was unsuccessful in getting the &quot;target line&quot; to add to a Clustered-Stacked Bar chart. I get the &quot;Some chart types cannot be combined with other types. Select a different chart type&quot; error, and all hell breaks loose when I try to remove the dummy axis series.  I&#039;ve always (not just this time) had some trouble with adding those extra series of XY points, so this may just be another instance of that problem, but it seems like this is something non-trivial to be done here...

Thanks for any suggestions-</description>
		<content:encoded><![CDATA[<p>Jon -<br />
Love the site as always and this is a great tutorial.</p>
<p>Following up on your comment to Chris above, I was unsuccessful in getting the &#8220;target line&#8221; to add to a Clustered-Stacked Bar chart. I get the &#8220;Some chart types cannot be combined with other types. Select a different chart type&#8221; error, and all hell breaks loose when I try to remove the dummy axis series.  I&#8217;ve always (not just this time) had some trouble with adding those extra series of XY points, so this may just be another instance of that problem, but it seems like this is something non-trivial to be done here&#8230;</p>
<p>Thanks for any suggestions-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15317</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 18 Jun 2009 10:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15317</guid>
		<description>Remove the built-in axis tick labels, add a hidden series that displays the tick labels you want as data labels. This is described in &lt;a href=&quot;http://peltiertech.com/WordPress/individually-formatted-category-axis-labels/&quot; rel=&quot;nofollow&quot;&gt;Individually Formatted Category Axis Labels &#124; PTS Blog&lt;/a&gt;. Don&#039;t change the collors of the labels, but right align them.</description>
		<content:encoded><![CDATA[<p>Remove the built-in axis tick labels, add a hidden series that displays the tick labels you want as data labels. This is described in <a href="http://peltiertech.com/WordPress/individually-formatted-category-axis-labels/" rel="nofollow">Individually Formatted Category Axis Labels | PTS Blog</a>. Don&#8217;t change the collors of the labels, but right align them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15303</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 18 Jun 2009 03:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15303</guid>
		<description>Yes, they are right aligned.

But I slightly changed the text. 
I modified the text using 
Alpha = Alpha &amp; vbCrLf &amp; 10
With this, the tick table text is displayed as 
&lt;tt class=&quot;tt&quot;&gt;Alpha
&#160; 10&lt;/tt&gt;
But I wanted to show it as 
&lt;tt class=&quot;tt&quot;&gt;Alpha
&#160; &#160;10&lt;/tt&gt;

Any ideas?</description>
		<content:encoded><![CDATA[<p>Yes, they are right aligned.</p>
<p>But I slightly changed the text.<br />
I modified the text using<br />
Alpha = Alpha &#038; vbCrLf &#038; 10<br />
With this, the tick table text is displayed as<br />
<tt class="tt">Alpha<br />
&nbsp; 10</tt><br />
But I wanted to show it as<br />
<tt class="tt">Alpha<br />
&nbsp; &nbsp;10</tt></p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15261</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 17 Jun 2009 11:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15261</guid>
		<description>Nathan - 

Two points:
1. The labels are already right-aligned, aren&#039;t they?
2. I recall puzzling over why this alignment property didn&#039;t have any effect anyway.</description>
		<content:encoded><![CDATA[<p>Nathan &#8211; </p>
<p>Two points:<br />
1. The labels are already right-aligned, aren&#8217;t they?<br />
2. I recall puzzling over why this alignment property didn&#8217;t have any effect anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15250</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 17 Jun 2009 06:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15250</guid>
		<description>Thank you very much John.

Is it possible to align the Category axis TickLabels such as xlRight ?

I tried with the code
    ActiveChart.Axes(xlCategory).Select
    Selection.TickLabels.AutoScaleFont = True
    With Selection.TickLabels
        .Alignment = xlRight
        .Offset = 0
        .ReadingOrder = xlRTL
        .Orientation = xlHorizontal
    End With

but it is not working.

Please tell how to do that?</description>
		<content:encoded><![CDATA[<p>Thank you very much John.</p>
<p>Is it possible to align the Category axis TickLabels such as xlRight ?</p>
<p>I tried with the code<br />
    ActiveChart.Axes(xlCategory).Select<br />
    Selection.TickLabels.AutoScaleFont = True<br />
    With Selection.TickLabels<br />
        .Alignment = xlRight<br />
        .Offset = 0<br />
        .ReadingOrder = xlRTL<br />
        .Orientation = xlHorizontal<br />
    End With</p>
<p>but it is not working.</p>
<p>Please tell how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15200</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 16 Jun 2009 13:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15200</guid>
		<description>Sometimes you have to choose between doing it right, and doing it right now.</description>
		<content:encoded><![CDATA[<p>Sometimes you have to choose between doing it right, and doing it right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15195</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 11:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15195</guid>
		<description>Yes.

But I needed to show them to the user. So, I used that method</description>
		<content:encoded><![CDATA[<p>Yes.</p>
<p>But I needed to show them to the user. So, I used that method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15190</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 16 Jun 2009 10:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15190</guid>
		<description>Nathan -

This works the same as using B, C, D, etc., which I used in the example. The labels are hidden finally, so exactly what they say does not matter.</description>
		<content:encoded><![CDATA[<p>Nathan -</p>
<p>This works the same as using B, C, D, etc., which I used in the example. The labels are hidden finally, so exactly what they say does not matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://peltiertech.com/WordPress/clustered-stacked-bar-charts/comment-page-1/#comment-15187</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 07:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=690#comment-15187</guid>
		<description>I got the solution for my previous comment.

Give another range for secondary axis label, that will take care of the rest. 

For the above example, the range has to be(put one in each cell)
Alpha Alpha Alpha Beta Beta Beta Gamma Gamma Gamma

Thanks for your time</description>
		<content:encoded><![CDATA[<p>I got the solution for my previous comment.</p>
<p>Give another range for secondary axis label, that will take care of the rest. </p>
<p>For the above example, the range has to be(put one in each cell)<br />
Alpha Alpha Alpha Beta Beta Beta Gamma Gamma Gamma</p>
<p>Thanks for your time</p>
]]></content:encoded>
	</item>
</channel>
</rss>
