<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Path Data Xaml</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : XAML Snippets : Path Data Xaml]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 18:20:03 +0000</pubDate>
  <lastBuildDate>Fri, 10 Oct 2008 11:33:31 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12379</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Path Data Xaml : Hi Oleg,Thanks for the reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41879&amp;title=path-data-xaml#41879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 10 October 2008 at 11:33am<br /><br />Hi Oleg,<br><br>Thanks for the reply. I will probably hold off on the pie chart until the Arc bezier is implemented then, as the Cubic bezier stuff is blowing my mind ;)<br>]]>
   </description>
   <pubDate>Fri, 10 Oct 2008 11:33:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41879&amp;title=path-data-xaml#41879</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml : Hi, Yes, we need to sit and implement...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41853&amp;title=path-data-xaml#41853</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 10 October 2008 at 2:21am<br /><br />Hi,<DIV>Yes, we need to sit and implement Arc using Bizier for future version - at least standard XAML also do same. Just need to prepare for such kind of Math. :-(&nbsp; Pie chart will be much easy to implement with 'a' tag.</DIV>]]>
   </description>
   <pubDate>Fri, 10 Oct 2008 02:21:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41853&amp;title=path-data-xaml#41853</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml : I found this interesting PDF that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41840&amp;title=path-data-xaml#41840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 09 October 2008 at 11:51pm<br /><br />I found this interesting PDF that seems to indicate a solution to the problem:<br><br><a href="http://itc.ktu.lt/itc354/Riskus354.pdf" target="_blank">http://itc.ktu.lt/itc354/Riskus354.pdf</a><br><br>Fittingly titled <i>Approximation of a Cubic Bezier Curve by Circular Arcs and Vice Versa</i>. Unfortunately, the cubic bezier curve has four control points as far as the PDF is concerned, but the Path Data mini-language cubic bezier curve only seems to accept three points, so I'm at a bit of a loss in terms of how to proceed...<br><br>I've tried converting the formulas in the document to VB code, but unfortunately I haven't had much success yet (at generating a pie slice at least, but I have made some pretty pictures ;) ). Anyone care to take a stab at it?<br><br>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 23:51:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41840&amp;title=path-data-xaml#41840</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml : I&amp;#039;ve created a pie chart...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41821&amp;title=path-data-xaml#41821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 09 October 2008 at 11:44am<br /><br />I've created a pie chart with another program using the same values as my "sloppy" XAML chart (5%, 15%, 20%, 25%, 35%), and then overlayed my chart over that chart:<br><br><img src="uploads/20081009_114224_XamlPieOverlay.jpg" border="0"><br><br>As you can see, my math for the L values is correct (the lines extending from the center of the pie chart to the radius match the other pie chart, so the basic representation is correct). The problem is obviously with my calculations for the S values. Right now I am picking a point halfway between L values, but this is obviously incorrect.<br>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 11:44:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41821&amp;title=path-data-xaml#41821</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml : Hi Oleg, I&amp;#039;ve seen the chart...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41819&amp;title=path-data-xaml#41819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 09 October 2008 at 11:35am<br /><br />Hi Oleg, <br><br>I've seen the chart sample (in fact that's where I got the Path Data code that I showed in the first message). What I don't understand is what math is required to calculate the required values to put into the S portion of the mini-language. <br><br>For example, If I want to draw the first pie slice (10%), how do I know what S values are required to accurately draw the arc/curve to appear as 10% or 36 degrees of a circle?<br><br>In any case, I know it's not your job to teach me math, or XAML for that matter, I was just hoping somebody had some insights on this. <br>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 11:35:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41819&amp;title=path-data-xaml#41819</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml :  Hi,  Yes, &amp;#039;a&amp;#039; is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41799&amp;title=path-data-xaml#41799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 09 October 2008 at 2:47am<br /><br />Hi,<div>&nbsp;</div><div>Yes, 'a' is not supported now :(</div><div>&nbsp;</div><div>Here sample how it can be emulated with 'S':</div><div>&nbsp;</div><div><a href="https://forum.codejock.com/uploads/20081009_024727_ChartSample.zip" target="_blank">ChartSample.zip</a><br><br><br></div>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 02:47:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41799&amp;title=path-data-xaml#41799</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml :  Okay, *some* progress...  Here&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41786&amp;title=path-data-xaml#41786</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 09 October 2008 at 12:03am<br /><br />Okay, *some* progress...<br><br>Here's a sample that does "okay" on evenly divided slices, but gets weird when the slices have different values:<br><br><br><a href="uploads/20081008_235828_XamlPieChart.zip" target="_blank">uploads/20081008_235828_XamlPieChart.zip</a><br><br>These screenshots illustrate the point I'm at now:<br><br><img src="uploads/20081008_235907_XamlPieEven.jpg" height="317" width="422" border="0"><br><b>(EVEN SLICE PERCENTAGES: 20%)<br><br><br><img src="uploads/20081008_235954_XamlPieDifferen.jpg" height="314" width="420" border="0"><br>(VARIOUS SLICE PERCENTAGES: 5,15,20,25,35%)</b><br><br>I will be the first to admit that geometric calculations are not my strong point, so if anybody has an idea of what I am doing wrong, or how to get a better result, I would appreciate the input. I'll be happy to post a good reusable class when the results are good in return.<br><br>Thanks a lot.<br><br>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 00:03:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41786&amp;title=path-data-xaml#41786</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml :  I found the MS site on the Path...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41783&amp;title=path-data-xaml#41783</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 08 October 2008 at 9:23pm<br /><br />I found the MS site on the Path Data mini-language. If anyone else is interested it is here:<br><br><a href="http://msdn.microsoft.com/en-us/library/cc189041%28VS.95%29.aspx#abouthis&#100;ocument" target="_blank">http://msdn.microsoft.com/en-us/library/cc189041(VS.95).aspx#abouthisdocument</a><br><br>I now understand that M is MoveTo, L is LineTo, S is Smooth Cubic Bezier Curve, and Z closes the path. I understand how to use them basically. What I don't understand is how to mathematically convert something like a percentage or angle to the correct values to accurately represent a pie slice (really it's the S value that I have no idea how to compute). Most of the sample code I have found uses the A (Elliptical Arc) command, and it seems that CJ markup doesn't support this.<br><br>Anybody have any experience with this?<br>]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 21:23:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41783&amp;title=path-data-xaml#41783</guid>
  </item> 
  <item>
   <title><![CDATA[Path Data Xaml : Does anyone know where to get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41779&amp;title=path-data-xaml#41779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12379<br /><strong>Posted:</strong> 08 October 2008 at 6:19pm<br /><br />Does anyone know where to get good information on the Path element Data attribute? I've been looking at the CJ chart samples, and the Pie chart confounds me:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&lt;Path Data="M 130 130 L 130.00 0.00 S 147.87 0.000000 165.07 4.82 Z"/&gt;<br></pre></td></tr></table><br><br>Draws a pie slice, but I'm not sure how...How would I convert a percentage (i.e 10%) into a slice that represents that percentage?<br><br>Thanks in advance for any help.<br><br>]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 18:19:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12379&amp;PID=41779&amp;title=path-data-xaml#41779</guid>
  </item> 
 </channel>
</rss>