<?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: Wind Direction Chart</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-43455</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Thu, 21 Jan 2010 02:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-43455</guid>
		<description>&lt;p&gt;Hi Frans.&lt;/p&gt;
&lt;p&gt;Indeed you&#039;ve found a mistake. You&#039;ll note this was a comment earlier on.&lt;br&gt;
Nice site. You&#039;ve got a lot of material there!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Frans.</p>
<p>Indeed you&#8217;ve found a mistake. You&#8217;ll note this was a comment earlier on.<br />
Nice site. You&#8217;ve got a lot of material there!</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frans van Zelm</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-43393</link>
		<dc:creator>Frans van Zelm</dc:creator>
		<pubDate>Sat, 16 Jan 2010 23:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-43393</guid>
		<description>&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;I was pleasantly surprised by all ideas on in-cell charts. This is fun.&lt;/p&gt;
&lt;p&gt;You&#039;ll be far beyond this topic (2005) but still ...&lt;br&gt;
Shouldn&#039;t the formula in B7 read =SIN(RADIANS(B4)) and in B9 =COS(RADIANS(B4)).&lt;br&gt;
In that way 0 degrees point top, 90 degrees to right etc. I wonder if I have a point here. &lt;/p&gt;
&lt;p&gt;If you are interested: see my site, page Example Files, Excel, DiversenGrafieken.xls. On the last sheet, you&#039;ll find &#039;changed&#039; versions of your great examples.&lt;br&gt;
I also had a fight with the macro code of in-cell line charts. It assigns names to the lines, based on a cell address. And I tried to add more comments (in Dutch). Also funny: I found the WorksheetFunction.Max before reading all comments.&lt;/p&gt;
&lt;p&gt;Kind regards, Frans&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>I was pleasantly surprised by all ideas on in-cell charts. This is fun.</p>
<p>You&#8217;ll be far beyond this topic (2005) but still &#8230;<br />
Shouldn&#8217;t the formula in B7 read =SIN(RADIANS(B4)) and in B9 =COS(RADIANS(B4)).<br />
In that way 0 degrees point top, 90 degrees to right etc. I wonder if I have a point here. </p>
<p>If you are interested: see my site, page Example Files, Excel, DiversenGrafieken.xls. On the last sheet, you&#8217;ll find &#8216;changed&#8217; versions of your great examples.<br />
I also had a fight with the macro code of in-cell line charts. It assigns names to the lines, based on a cell address. And I tried to add more comments (in Dutch). Also funny: I found the WorksheetFunction.Max before reading all comments.</p>
<p>Kind regards, Frans</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15732</link>
		<dc:creator>Ajith</dc:creator>
		<pubDate>Wed, 17 Aug 2005 06:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15732</guid>
		<description>&lt;p&gt;Jon,&lt;br&gt;
Thanks for the reply. But I am using OWC copmponent to create the spread sheet and the chart. I want to combine both. Or I can insert the GIF file created from the chart into the spread sheet at runtime. Do you have any idea to do this.&lt;br&gt;
Thanks&lt;br&gt;
Ajith&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jon,<br />
Thanks for the reply. But I am using OWC copmponent to create the spread sheet and the chart. I want to combine both. Or I can insert the GIF file created from the chart into the spread sheet at runtime. Do you have any idea to do this.<br />
Thanks<br />
Ajith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15726</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 16 Aug 2005 16:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15726</guid>
		<description>&lt;p&gt;Ajith -&lt;/p&gt;
&lt;p&gt;Use Insert menu &gt; Picture &gt; From File to insert the GIF. If you need to automate it, turn on the macro recorder prior to inserting the picture, then edit the code as necessary.&lt;/p&gt;
&lt;p&gt;- Jon&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ajith -</p>
<p>Use Insert menu &gt; Picture &gt; From File to insert the GIF. If you need to automate it, turn on the macro recorder prior to inserting the picture, then edit the code as necessary.</p>
<p>- Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15725</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 16 Aug 2005 12:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15725</guid>
		<description>&lt;p&gt;I&#039;ve built an app which is a vector map, essentially a scatter chart with a regular array of points, where each point used a custom line segment as its marker, with an arrowhead at one end, and the length and direction of the arrow were determined by values in a table.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve built an app which is a vector map, essentially a scatter chart with a regular array of points, where each point used a custom line segment as its marker, with an arrowhead at one end, and the length and direction of the arrow were determined by values in a table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15724</link>
		<dc:creator>Ajith</dc:creator>
		<pubDate>Tue, 16 Aug 2005 11:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15724</guid>
		<description>&lt;p&gt;Hi Rob,&lt;br&gt;
I am creating a chart using ChartSpaceClass.&lt;br&gt;
oChartSpace.Charts[0].SeriesCollection.Add(0);&lt;br&gt;
oChartSpace.Charts[0].SeriesCollection[0].SetData(OWC11.ChartDimensionsEnum.chDimCategories,Convert.ToInt32(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),names );&lt;br&gt;
oChartSpace.Charts[0].SeriesCollection[0].SetData(OWC11.ChartDimensionsEnum.chDimValues,Convert.ToInt32(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),totals );&lt;br&gt;
&#039;names&#039; and &#039;totals&#039; are twa tab limited strings.&lt;br&gt;
I want this chart to be showed in an excel and save in the server.&lt;br&gt;
I use SpreadsheetClass to generate excel sheet. How can I link this chart to my Spreadsheet, if I am not using the data from the spread sheet to create Chart. &lt;/p&gt;
&lt;p&gt;If I use,&lt;br&gt;
oChartSpace.ExportPicture( TargetGIF + strName, &quot;gif&quot;, 800, 600);&lt;br&gt;
to save the chart as a picture, how can I irsert this GIF to my spreadsheet? Please help me.&lt;/p&gt;
&lt;p&gt;Ajith&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Rob,<br />
I am creating a chart using ChartSpaceClass.<br />
oChartSpace.Charts[0].SeriesCollection.Add(0);<br />
oChartSpace.Charts[0].SeriesCollection[0].SetData(OWC11.ChartDimensionsEnum.chDimCategories,Convert.ToInt32(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),names );<br />
oChartSpace.Charts[0].SeriesCollection[0].SetData(OWC11.ChartDimensionsEnum.chDimValues,Convert.ToInt32(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),totals );<br />
&#8216;names&#8217; and &#8216;totals&#8217; are twa tab limited strings.<br />
I want this chart to be showed in an excel and save in the server.<br />
I use SpreadsheetClass to generate excel sheet. How can I link this chart to my Spreadsheet, if I am not using the data from the spread sheet to create Chart. </p>
<p>If I use,<br />
oChartSpace.ExportPicture( TargetGIF + strName, &#8220;gif&#8221;, 800, 600);<br />
to save the chart as a picture, how can I irsert this GIF to my spreadsheet? Please help me.</p>
<p>Ajith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15721</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Tue, 16 Aug 2005 06:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15721</guid>
		<description>&lt;p&gt;Murray,&lt;/p&gt;
&lt;p&gt;Nice work.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br&gt;
Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Murray,</p>
<p>Nice work.</p>
<p>Cheers,<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray Shactman</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15720</link>
		<dc:creator>Murray Shactman</dc:creator>
		<pubDate>Tue, 16 Aug 2005 05:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15720</guid>
		<description>&lt;p&gt;Sub Direction()&lt;br&gt;
&#039;&lt;br&gt;
&#039;&lt;br&gt;
&#039;&lt;br&gt;
    Dim ang As Double&lt;br&gt;
    Dim length As Double&lt;br&gt;
    Dim centerX As Double &#039;the starting point x points from upper left&lt;br&gt;
    Dim centerY As Double &#039;the starting point y points from upper left&lt;br&gt;
    Dim y As Double&lt;br&gt;
    Dim x As Double&lt;br&gt;
    Dim rad As Double&lt;br&gt;
    Dim i As Integer&lt;br&gt;
    Dim numLines As Integer&lt;/p&gt;
&lt;p&gt;    numLines = ActiveSheet.Shapes.Count &#039;count number of shapes&lt;br&gt;
    For i = numLines To 1 Step -1&lt;br&gt;
    If ActiveSheet.Shapes(i).Type = 9 Then&lt;br&gt;
    ActiveSheet.Shapes(i).Delete  &#039;get rid of them&lt;br&gt;
    End If&lt;br&gt;
    Next i&lt;/p&gt;
&lt;p&gt;    centerX = Range(&amp;quotB1&amp;quot).Value &#039;I just used empty cells&lt;br&gt;
    centerY = Range(&amp;quotB3&amp;quot).Value&lt;br&gt;
    length = Range(&amp;quotB5&amp;quot).Value &#039;the length of arrow line in points&lt;br&gt;
    ang = Range(&amp;quotB4&amp;quot).Value - 180  &#039;so that the arrow will point toward the&lt;br&gt;
    &#039;wind direction&lt;br&gt;
    rad = ang * Application.WorksheetFunction.Pi / 180&lt;br&gt;
    x = Cos(rad) * length&lt;br&gt;
    y = Sin(rad) * length&lt;br&gt;
    With ActiveSheet.Shapes.AddLine(centerX, centerY, centerX + x, centerY - y).Line&lt;br&gt;
    .EndArrowheadWidth = msoArrowheadWidthMedium&lt;br&gt;
    .EndArrowheadStyle = msoArrowheadTriangle&lt;br&gt;
    .EndArrowheadLength = msoArrowheadLengthMedium&lt;br&gt;
    End With&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;My first time posting code.  I hope I did it right.  &lt;/p&gt;
&lt;p&gt;This is only for one wind direction of course.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sub Direction()<br />
&#8216;<br />
&#8216;<br />
&#8216;<br />
    Dim ang As Double<br />
    Dim length As Double<br />
    Dim centerX As Double &#8216;the starting point x points from upper left<br />
    Dim centerY As Double &#8216;the starting point y points from upper left<br />
    Dim y As Double<br />
    Dim x As Double<br />
    Dim rad As Double<br />
    Dim i As Integer<br />
    Dim numLines As Integer</p>
<p>    numLines = ActiveSheet.Shapes.Count &#8216;count number of shapes<br />
    For i = numLines To 1 Step -1<br />
    If ActiveSheet.Shapes(i).Type = 9 Then<br />
    ActiveSheet.Shapes(i).Delete  &#8216;get rid of them<br />
    End If<br />
    Next i</p>
<p>    centerX = Range(&amp;quotB1&amp;quot).Value &#8216;I just used empty cells<br />
    centerY = Range(&amp;quotB3&amp;quot).Value<br />
    length = Range(&amp;quotB5&amp;quot).Value &#8216;the length of arrow line in points<br />
    ang = Range(&amp;quotB4&amp;quot).Value &#8211; 180  &#8216;so that the arrow will point toward the<br />
    &#8216;wind direction<br />
    rad = ang * Application.WorksheetFunction.Pi / 180<br />
    x = Cos(rad) * length<br />
    y = Sin(rad) * length<br />
    With ActiveSheet.Shapes.AddLine(centerX, centerY, centerX + x, centerY &#8211; y).Line<br />
    .EndArrowheadWidth = msoArrowheadWidthMedium<br />
    .EndArrowheadStyle = msoArrowheadTriangle<br />
    .EndArrowheadLength = msoArrowheadLengthMedium<br />
    End With<br />
End Sub</p>
<p>My first time posting code.  I hope I did it right.  </p>
<p>This is only for one wind direction of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15719</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Tue, 16 Aug 2005 04:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15719</guid>
		<description>&lt;p&gt;Murray,&lt;/p&gt;
&lt;p&gt;You are correct. I must have been looking at a previous version.&lt;/p&gt;
&lt;p&gt;What I settled on was =COS(B4 * PI() / 180)&lt;/p&gt;
&lt;p&gt;Please post your code! it&#039;s great to see other examples:&lt;br&gt;
When posting code in this comment box, replace:&lt;br&gt;
&quot; with &quot;&lt;br&gt;
&amp; with &amp;&lt;br&gt;
&lt; with &lt;&lt;br&gt;
&gt; with &gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Murray,</p>
<p>You are correct. I must have been looking at a previous version.</p>
<p>What I settled on was =COS(B4 * PI() / 180)</p>
<p>Please post your code! it&#8217;s great to see other examples:<br />
When posting code in this comment box, replace:<br />
&#8221; with &amp;quot;<br />
&amp; with &amp;amp;<br />
&lt; with &amp;lt;<br />
&gt; with &amp;gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray Shactman</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/#comment-15718</link>
		<dc:creator>Murray Shactman</dc:creator>
		<pubDate>Tue, 16 Aug 2005 03:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1215#comment-15718</guid>
		<description>&lt;p&gt;What units of measurement are in cell B4 through E4?&lt;/p&gt;
&lt;p&gt;If they are in degrees, then the formula in cell B7 should be COS(B4 * 3.1416[pi]/180).&lt;/p&gt;
&lt;p&gt;I wrote some VBA code that would graphically indicate direction using the drawing objects (arrowhead line) on it.  If you want it I&#039;ll post it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What units of measurement are in cell B4 through E4?</p>
<p>If they are in degrees, then the formula in cell B7 should be COS(B4 * 3.1416[pi]/180).</p>
<p>I wrote some VBA code that would graphically indicate direction using the drawing objects (arrowhead line) on it.  If you want it I&#8217;ll post it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

