<?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 : UpdateDiagram() buggy!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : UpdateDiagram() buggy!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 05:31:24 +0000</pubDate>
  <lastBuildDate>Wed, 07 Sep 2011 10:46:51 +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=18901</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[UpdateDiagram() buggy! :   While I&amp;#039;m at it, how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66190&amp;title=updatediagram-buggy#66190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 18901<br /><strong>Posted:</strong> 07 September 2011 at 10:46am<br /><br />While I'm at it, how do you set a title text above/under each pie?]]>
   </description>
   <pubDate>Wed, 07 Sep 2011 10:46:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66190&amp;title=updatediagram-buggy#66190</guid>
  </item> 
  <item>
   <title><![CDATA[UpdateDiagram() buggy! :   And... just as usual the most...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66152&amp;title=updatediagram-buggy#66152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 18901<br /><strong>Posted:</strong> 04 September 2011 at 7:11pm<br /><br />And... just as usual the most critical functions are not virtual. Unbelievable! :(<div>&nbsp;</div><div>XTPChartContent.h:</div><div>void UpdateDiagram();</div><div>CXTPChartDeviceContext* CreateDeviceContext(CXTPChartContainer* pContainer, HDC hDC, CRect rcBounds, BOOL bWindowDC);</div>]]>
   </description>
   <pubDate>Sun, 04 Sep 2011 19:11:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66152&amp;title=updatediagram-buggy#66152</guid>
  </item> 
  <item>
   <title><![CDATA[UpdateDiagram() buggy! :   Consider this type of diagram:Clearly,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66151&amp;title=updatediagram-buggy#66151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 18901<br /><strong>Posted:</strong> 04 September 2011 at 7:02pm<br /><br /><div>Consider this type of diagram:</div><div>&nbsp;</div><div><img src="uploads/2198/grouped_pies.png" height="166" width="1368" border="0" /></div><div>Clearly, the coloring is wrong. I've tried playing with SetColorEach() and SetLegendVisible() but with no success. Digging into the source code reveals the issue. UpdateDiagram() does not check for the above! <strong>Palette index should be reset for each series!</strong></div><div><strong></strong>&nbsp;</div><div>void CXTPChartContent::UpdateDiagram()<br>{<br>&nbsp;&nbsp;&nbsp; int i;<br>&nbsp;&nbsp;&nbsp; int nIndex = 0;</div><div>&nbsp;&nbsp;&nbsp; for (i = 0; i &lt; GetSeries()-&gt;GetCount(); i++)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPChartSeries* pSeries = GetSeries()-&gt;GetAt(i);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!pSeries-&gt;IsVisible())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!pSeries-&gt;GetStyle())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pSeries-&gt;GetStyle()-&gt;IsColorEach())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int j = 0; j &lt; pSeries-&gt;GetPoints()-&gt;GetCount(); j++)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSeries-&gt;GetPoints()-&gt;GetAt(j)-&gt;m_nPaletteIndex = nIndex++;<br></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>pSeries-&gt;m_nPaletteIndex = nIndex++;<br></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}</div>]]>
   </description>
   <pubDate>Sun, 04 Sep 2011 19:02:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18901&amp;PID=66151&amp;title=updatediagram-buggy#66151</guid>
  </item> 
 </channel>
</rss>