<?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: Custom colors for Ext.chart.*</title>
	<atom:link href="http://www.akawebdesign.com/2009/10/08/custom-colors-for-ext-chart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akawebdesign.com/2009/10/08/custom-colors-for-ext-chart/</link>
	<description>Longtime nerd. Rockstar developer.</description>
	<lastBuildDate>Wed, 18 Apr 2012 11:52:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Thomas K</title>
		<link>http://www.akawebdesign.com/2009/10/08/custom-colors-for-ext-chart/#comment-78</link>
		<dc:creator>Thomas K</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.akawebdesign.com/?p=253#comment-78</guid>
		<description>Hi Arthur,

moved the style-Part down from the Panel INTO the Piechart and it works...
sometime an error is that stupid :)

You made my day, thanks...</description>
		<content:encoded><![CDATA[<p>Hi Arthur,</p>
<p>moved the style-Part down from the Panel INTO the Piechart and it works&#8230;<br />
sometime an error is that stupid <img src='http://www.akawebdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You made my day, thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Kay</title>
		<link>http://www.akawebdesign.com/2009/10/08/custom-colors-for-ext-chart/#comment-77</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Mon, 22 Mar 2010 16:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.akawebdesign.com/?p=253#comment-77</guid>
		<description>I wonder if it&#039;s a problem of scope. Have you used Firebug to debug that line? Does your variable have the values you expect at the time this line is executed?</description>
		<content:encoded><![CDATA[<p>I wonder if it&#8217;s a problem of scope. Have you used Firebug to debug that line? Does your variable have the values you expect at the time this line is executed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas K</title>
		<link>http://www.akawebdesign.com/2009/10/08/custom-colors-for-ext-chart/#comment-76</link>
		<dc:creator>Thomas K</dc:creator>
		<pubDate>Mon, 22 Mar 2010 15:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.akawebdesign.com/?p=253#comment-76</guid>
		<description>Hi Arthur,

thanks for that nice Post.

I got a Piechart with unknown count and content.
Thats why i can just say the order and colors on runtime.
Now I want to color the Pie-pieces.

I&#039;m able to create a String like (in reality by a loop):
chartcolors = &quot;&#039;#00FF00&#039;, &#039;#FF0000&#039; , &#039;#0000FF&#039;&quot;;

Even I made an array of those strings and tried all of them with &quot;#00FF00&quot; or &quot;0x00FF00&quot;

If I hard code the Colors into:
style: { colors: [&#039;#00FF00&#039;, &#039;#FF0000&#039; , &#039;#0000FF&#039;]}
it works like a charm, BUT:
i can&#039;t make the chart use the former named string or array.
If i use 
style: { colors: chartcolors} 
or
style: { colors: [chartcolors]}
it uses the default-ExtJS-Chart-Colors.
In some combinations it uses the first of the colors in the string, but then only this, for ALL pieces (and thats also not what i want :) )

Can you give me a hint, how to declare those colors with a variable?

Thanks a lot, with regards,
TK</description>
		<content:encoded><![CDATA[<p>Hi Arthur,</p>
<p>thanks for that nice Post.</p>
<p>I got a Piechart with unknown count and content.<br />
Thats why i can just say the order and colors on runtime.<br />
Now I want to color the Pie-pieces.</p>
<p>I&#8217;m able to create a String like (in reality by a loop):<br />
chartcolors = &#8220;&#8216;#00FF00&#8242;, &#8216;#FF0000&#8242; , &#8216;#0000FF&#8217;&#8221;;</p>
<p>Even I made an array of those strings and tried all of them with &#8220;#00FF00&#8243; or &#8220;0x00FF00&#8243;</p>
<p>If I hard code the Colors into:<br />
style: { colors: ['#00FF00', '#FF0000' , '#0000FF']}<br />
it works like a charm, BUT:<br />
i can&#8217;t make the chart use the former named string or array.<br />
If i use<br />
style: { colors: chartcolors}<br />
or<br />
style: { colors: [chartcolors]}<br />
it uses the default-ExtJS-Chart-Colors.<br />
In some combinations it uses the first of the colors in the string, but then only this, for ALL pieces (and thats also not what i want <img src='http://www.akawebdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>Can you give me a hint, how to declare those colors with a variable?</p>
<p>Thanks a lot, with regards,<br />
TK</p>
]]></content:encoded>
	</item>
</channel>
</rss>

