<?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 : Chart colors</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : Chart colors]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 22 May 2026 18:47:22 +0000</pubDate>
  <lastBuildDate>Mon, 28 Mar 2011 05:03:06 +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=18126</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[Chart colors : Hi,i love the chart control but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18126&amp;PID=63585&amp;title=chart-colors#63585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6659">Developerx</a><br /><strong>Subject:</strong> 18126<br /><strong>Posted:</strong> 28 March 2011 at 5:03am<br /><br />Hi,<br><br>i love the chart control but some things like cridline color is not easy to set?<br><br>how to set color or gridlines (Chart), i did not find any documentation or examples<br><br>' i can set visible but not color<br>diagram.AxisX.GridLines.Visible = checkgridx<br>&nbsp;diagram.AxisY.GridLines.Visible = checkgridy<br>&nbsp;'color ??<br>&nbsp;<br>so plan B, setappearance <br>B) How to use the setapparance function, the built in black works in the demos !<br><br>how to create a new black with red gridlines??<br><br>i open chart builder utility and save the apperance black (as black2.xml)<br><br><br>black2.xml (same values as black (just gridines color is changed)<br><br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;Appearance CompactMode="1"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Content BackgroundColor="0, 0, 0" BorderColor="0, 0, 0"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ChartTitle TextColor="248, 248, 248"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Legend TextColor="248, 248, 248" BackgroundColor="0, 0, 0" BorderColor="0, 0, 0"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Content&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Diagram2D BackgroundColor="51, 51, 51" BackgroundColor2="0, 0, 0" BorderColor="128, 128, 128"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Axis Color="150, 150, 150" InterlacedColor="77, 77, 77" InterlacedColor2="0, 0, 0"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;GridLines Color="255, 0, 0" MinorColor="77, 77, 77"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;AxisLabel TextColor="248, 248, 248"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;AxisTitle TextColor="248, 248, 248"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ConstantLine Color="0, 0, 0" TextColor="248, 248, 248"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Strip Color="0, 0, 0"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Axis&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Diagram2D&gt;<br>&nbsp;&nbsp;&nbsp; &lt;SeriesStyle&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Label BackgroundColor="255, 255, 255" TextColor="255, 255, 255" BorderColor="255, 255, 255" ConnectorColor="255, 255, 255"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/SeriesStyle&gt;<br>&nbsp;&nbsp;&nbsp; &lt;FinanceSeriesStyle UpColor="250, 250, 250" DownColor="200, 0, 0"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;PieSeriesStyle BorderColor="0, 0, 0"/&gt;<br>&lt;/Appearance&gt;<br><br><br>-------------<br>so now i just want to load and set appearance, but i dont work?<br>how to setappearance from xml file?<br><br>Private Sub Command5_Click()<br>Dim PropExchange As PropExchange<br>&nbsp;&nbsp;&nbsp; Set PropExchange = ChartControlGlobalSettings.CreatePropExchange<br>&nbsp;&nbsp;&nbsp; PropExchange.CreateAsXML True, "Content"<br>&nbsp;&nbsp;&nbsp; PropExchange.LoadFromFile ("f:\black2.xml")<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' this destroy chart<br>&nbsp;&nbsp;&nbsp; ' ChartControl.Content.DoPropExchange PropExchange<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' nothing happens<br>&nbsp;&nbsp;&nbsp; ChartControl.Content.Appearance.LoadAppearance PropExchange<br>&nbsp;&nbsp;&nbsp; ChartControl.Content.Appearance.SetAppearance "PropExchange"<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp; 'ok<br>&nbsp; '&nbsp; ChartControl.Content.Appearance.SetAppearance "Black"<br>End Sub<br><br><br>Regards<br>Developerx<br>]]>
   </description>
   <pubDate>Mon, 28 Mar 2011 05:03:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18126&amp;PID=63585&amp;title=chart-colors#63585</guid>
  </item> 
 </channel>
</rss>