<?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: Legends in Excel Charts &#8211; Formats, Size, Shape, and Position</title>
	<atom:link href="http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Mon, 15 Mar 2010 17:19:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</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/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-10043</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 10 Feb 2009 12:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-10043</guid>
		<description>SpeedBall -

Great idea. I may just post that as a complete routine when I have a chance.</description>
		<content:encoded><![CDATA[<p>SpeedBall -</p>
<p>Great idea. I may just post that as a complete routine when I have a chance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpeedBall</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-10042</link>
		<dc:creator>SpeedBall</dc:creator>
		<pubDate>Tue, 10 Feb 2009 12:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-10042</guid>
		<description>My data required me to put the labels at the start of the series (the series are converging in the end) which made the data labels to overlay on themselves.

I&#039;ve added following bit of code for it to decide on its own what is the best place to put labels (start or end)...decision is based on stdev of the first and last data values.

&lt;pre class=&quot;vbasmall&quot;&gt;Dim xrange1, xrange2 As Variant
      
      If ActiveChart Is Nothing Then
        MsgBox &quot;Select a chart and try again.&quot;, vbExclamation, &quot;No Chart Selected&quot;
        Exit Sub
      Else
        
        k = 0
        tot = ActiveChart.SeriesCollection.Count
        ReDim xrange1(1 To 1, 1 To tot)
        ReDim xrange2(1 To 1, 1 To tot)
        
        For Each mySrs In ActiveChart.SeriesCollection
            k = k + 1
            xrange1(1, k) = mySrs.Values(1)
            xrange2(1, k) = mySrs.Values(mySrs.Points.Count)
        Next mySrs
        
        stdev1 = WorksheetFunction.StDev(xrange1)
        stdev2 = WorksheetFunction.StDev(xrange2)
        
        For Each mySrs In ActiveChart.SeriesCollection
          bLabeled = False
          With mySrs
            ptcount = .Points.Count
            If stdev1 &gt; stdev2 Then
                startpt = 1
                endpt = ptcount
                xstp = 1
            Else
                startpt = ptcount
                endpt = 1
                xstp = -1
            End If
            
            For iPts = startpt To endpt Step xstp
&#160;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>My data required me to put the labels at the start of the series (the series are converging in the end) which made the data labels to overlay on themselves.</p>
<p>I&#8217;ve added following bit of code for it to decide on its own what is the best place to put labels (start or end)&#8230;decision is based on stdev of the first and last data values.</p>
<pre class="vbasmall">Dim xrange1, xrange2 As Variant

      If ActiveChart Is Nothing Then
        MsgBox "Select a chart and try again.", vbExclamation, "No Chart Selected"
        Exit Sub
      Else

        k = 0
        tot = ActiveChart.SeriesCollection.Count
        ReDim xrange1(1 To 1, 1 To tot)
        ReDim xrange2(1 To 1, 1 To tot)

        For Each mySrs In ActiveChart.SeriesCollection
            k = k + 1
            xrange1(1, k) = mySrs.Values(1)
            xrange2(1, k) = mySrs.Values(mySrs.Points.Count)
        Next mySrs

        stdev1 = WorksheetFunction.StDev(xrange1)
        stdev2 = WorksheetFunction.StDev(xrange2)

        For Each mySrs In ActiveChart.SeriesCollection
          bLabeled = False
          With mySrs
            ptcount = .Points.Count
            If stdev1 &gt; stdev2 Then
                startpt = 1
                endpt = ptcount
                xstp = 1
            Else
                startpt = ptcount
                endpt = 1
                xstp = -1
            End If

            For iPts = startpt To endpt Step xstp
&nbsp;</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpeedBall</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-10039</link>
		<dc:creator>SpeedBall</dc:creator>
		<pubDate>Tue, 10 Feb 2009 11:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-10039</guid>
		<description>Thanks a lot Jon!! you rock!</description>
		<content:encoded><![CDATA[<p>Thanks a lot Jon!! you rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-9980</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Mon, 09 Feb 2009 17:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-9980</guid>
		<description>Hi Jerry -

Working with legend entries in VBA is a challenge, because there is not a linkage between a series and its legend entry. We have suggested this for future developments of Excel by Microsoft. A legend object model linked to the series collection would be outrageous.

Reordering is actually only possible within a chart group, which is a collection of series of a given type and on a given axis. This is more constrained than you mentioned, but if you&#039;ve never tried this on a combination chart, you would not have run up against it.

I talk about chart groups in a future post, the one talking about legend entry order. Wednesday, I think.</description>
		<content:encoded><![CDATA[<p>Hi Jerry -</p>
<p>Working with legend entries in VBA is a challenge, because there is not a linkage between a series and its legend entry. We have suggested this for future developments of Excel by Microsoft. A legend object model linked to the series collection would be outrageous.</p>
<p>Reordering is actually only possible within a chart group, which is a collection of series of a given type and on a given axis. This is more constrained than you mentioned, but if you&#8217;ve never tried this on a combination chart, you would not have run up against it.</p>
<p>I talk about chart groups in a future post, the one talking about legend entry order. Wednesday, I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Betz</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-9972</link>
		<dc:creator>Jerry Betz</dc:creator>
		<pubDate>Mon, 09 Feb 2009 15:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-9972</guid>
		<description>Jon,

I have found difficulty in ordering legend entries via automation in VBA, especially if the chart has a dual Axis.  I have macros that update the legend if an option box is selected to display the series.  It may be a limitation of Excel 2003, but the series for one axis will be grouped first, then the series for the second axis.  When selecting a series object, and trying to re-order the series on the Series Order Tab in the Format Data Series dialog box, only series for the axis in which it is ascribed to can be re-ordered.  Perhaps this is a feature that I should learn to embrace.

I utilize your techniques in setting up Dummy Series in the construction of charts, I wish there was a way to select an option in a dialog box to tell Excel to omit these series from Chart Legends.  This would make macros that customizing legends easier, especially in dual-axis charts.

Thank you for sharing in all of these posts, and for personally helping me out in other posts (http://www.dailydoseofexcel.com/archives/2008/08/15/my-coding-technique/).</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>I have found difficulty in ordering legend entries via automation in VBA, especially if the chart has a dual Axis.  I have macros that update the legend if an option box is selected to display the series.  It may be a limitation of Excel 2003, but the series for one axis will be grouped first, then the series for the second axis.  When selecting a series object, and trying to re-order the series on the Series Order Tab in the Format Data Series dialog box, only series for the axis in which it is ascribed to can be re-ordered.  Perhaps this is a feature that I should learn to embrace.</p>
<p>I utilize your techniques in setting up Dummy Series in the construction of charts, I wish there was a way to select an option in a dialog box to tell Excel to omit these series from Chart Legends.  This would make macros that customizing legends easier, especially in dual-axis charts.</p>
<p>Thank you for sharing in all of these posts, and for personally helping me out in other posts (<a href="http://www.dailydoseofexcel.com/archives/2008/08/15/my-coding-technique/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2008/08/15/my-coding-technique/</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-9965</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Mon, 09 Feb 2009 12:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-9965</guid>
		<description>Hi SpeedBall -

Thanks for the comment. In answer to your question, I use a very simple routine to label the last point of each series in the chart. It can be found in two places, in my blog at &lt;a href=&quot;http://peltiertech.com/WordPress/label-each-series-in-a-chart/&quot; title=&quot;Label Each Series in a Chart&quot; rel=&quot;nofollow&quot;&gt;Label Each Series in a Chart&lt;/a&gt;, and on my tutorial site at &lt;a href=&quot;http://peltiertech.com/Excel/Charts/LabelLastPoint.html&quot; title=&quot;Label the Last Point in an Excel Chart&#039;s Series&quot; rel=&quot;nofollow&quot;&gt;Label the Last Point in an Excel Chart&#039;s Series&lt;/a&gt;, where there is more discussion about the technique and development of the code.</description>
		<content:encoded><![CDATA[<p>Hi SpeedBall -</p>
<p>Thanks for the comment. In answer to your question, I use a very simple routine to label the last point of each series in the chart. It can be found in two places, in my blog at <a href="http://peltiertech.com/WordPress/label-each-series-in-a-chart/" title="Label Each Series in a Chart" rel="nofollow">Label Each Series in a Chart</a>, and on my tutorial site at <a href="http://peltiertech.com/Excel/Charts/LabelLastPoint.html" title="Label the Last Point in an Excel Chart's Series" rel="nofollow">Label the Last Point in an Excel Chart&#8217;s Series</a>, where there is more discussion about the technique and development of the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpeedBall</title>
		<link>http://peltiertech.com/WordPress/legends-excel-charts-formats-size-shape-position/comment-page-1/#comment-9964</link>
		<dc:creator>SpeedBall</dc:creator>
		<pubDate>Mon, 09 Feb 2009 12:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1484#comment-9964</guid>
		<description>Hey- like your posts!
I&#039;ve been trying to figure out since a long time but how do we get away with legend and use labels instead? When I use data labels in chart wizard(/options) the labels get attached to each data point instead of how neatly they&#039;re displayed in your chart...

Any help?

thanks</description>
		<content:encoded><![CDATA[<p>Hey- like your posts!<br />
I&#8217;ve been trying to figure out since a long time but how do we get away with legend and use labels instead? When I use data labels in chart wizard(/options) the labels get attached to each data point instead of how neatly they&#8217;re displayed in your chart&#8230;</p>
<p>Any help?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
