<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Spycode's Weblog</title>
	<atom:link href="http://spycode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://spycode.wordpress.com</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Sat, 28 Jun 2008 05:48:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='spycode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1434e9baa9a4b3e672ac2c74d6562f52?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Spycode's Weblog</title>
		<link>http://spycode.wordpress.com</link>
	</image>
			<item>
		<title>Calling A Web Service Using JavaScript</title>
		<link>http://spycode.wordpress.com/2008/06/28/calling-a-web-service-using-javascript/</link>
		<comments>http://spycode.wordpress.com/2008/06/28/calling-a-web-service-using-javascript/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 05:48:47 +0000</pubDate>
		<dc:creator>spycode</dc:creator>
				<category><![CDATA[General Discussion]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WebService]]></category>

		<guid isPermaLink="false">http://spycode.wordpress.com/?p=7</guid>
		<description><![CDATA[Hi Guys,
Let&#8217;s talk something about JavaScript and ASP .NET WebService today. I will explain you a step by step procedure to call a .net web service using javascript and reflect back the returned data to you page without causing post back.
Let&#8217;s Begin.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=7&subd=spycode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi Guys,</p>
<p>Let&#8217;s talk something about JavaScript and ASP .NET WebService today. I will explain you a step by step procedure to call a .net web service using javascript and reflect back the returned data to you page without causing post back.</p>
<p>Let&#8217;s Begin.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spycode.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spycode.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spycode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spycode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spycode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spycode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spycode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spycode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spycode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spycode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spycode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spycode.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=7&subd=spycode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://spycode.wordpress.com/2008/06/28/calling-a-web-service-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4faa89516890ac81cae250cc07a6226?s=96&#38;d=identicon" medium="image">
			<media:title type="html">spycode</media:title>
		</media:content>
	</item>
		<item>
		<title>Regular Bar Charts In Flex</title>
		<link>http://spycode.wordpress.com/2007/12/05/regular-bar-charts-in-flex/</link>
		<comments>http://spycode.wordpress.com/2007/12/05/regular-bar-charts-in-flex/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 09:28:38 +0000</pubDate>
		<dc:creator>spycode</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://spycode.wordpress.com/2007/12/05/regular-bar-charts-in-flex/</guid>
		<description><![CDATA[1)      Creating a Regular BAR CHART in FLEX 2.0 
In previous articles we saw how to create a pie chart and a column chart. In this article I will show you how to handle flex bar charts(regular) and how you can generate one of yours very easily.First of all create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=6&subd=spycode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoListParagraphCxSpMiddle"><!--[if !supportLists]--><strong><span><span>1)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">      </span></span></span>Creating a Regular BAR CHART in FLEX 2.0 </strong><!--[endif]--></p>
<p class="MsoListParagraphCxSpMiddle">In previous articles we saw how to create a pie chart and a column chart. In this article I will show you how to handle flex bar charts(regular) and how you can generate one of yours very easily.First of all create a new flex application and you should be provided with a sample mxml file where you we will write our code to generate a bar chart. Once you are ready with this open your mxml file and add following code to that file.</p>
<p class="MsoListParagraphCxSpMiddle"><strong><br />
<span style="font-size:10pt;line-height:115%;">&lt;mx:Script&gt;</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>&lt;![CDATA[<span>          </span></span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>import mx.collections.ArrayCollection;</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>[Bindable]</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>private var Results:ArrayCollection = new ArrayCollection( [</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>            </span>{ Person: "David", Maths: 35, Science:39, MS: 29 },</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>            </span>{ Person: "John", Maths: 32, Science:17, MS: 14 },</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>            </span>{ Person: "Matt", Maths: 27, Science:27, MS: 38 } ]);</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>]]&gt;</span></strong></p>
<p class="MsoListParagraphCxSpLast"><strong><span style="font-size:10pt;line-height:115%;"><span>    </span>&lt;/mx:Script&gt;</span></strong></p>
<p class="MsoNormal">The code explanation is self explanatory as previous articles. If you haven’t <span> </span>read those articles please read them so you can have better understanding. Next step is same as adding a chart and setting its data provider properties in order to generate the final chart.</p>
<p class="MsoNormal"><strong>Add this code to your application file.</strong></p>
<p class="MsoNormal"><strong>&lt;mx:Panel title=&#8221;Regular Bar Chart&#8221; </strong></p>
<p class="MsoNormal"><strong><span>        </span>height=&#8221;100%&#8221; width=&#8221;100%&#8221; layout=&#8221;horizontal&#8221;&gt;</strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;mx:ColumnChart id=&#8221;column&#8221; height=&#8221;400&#8243; width=&#8221;400&#8243; </strong></p>
<p class="MsoNormal"><strong><span>            </span>paddingLeft=&#8221;5&#8243; paddingRight=&#8221;5&#8243; </strong></p>
<p class="MsoNormal"><strong><span>            </span>showDataTips=&#8221;true&#8221; dataProvider=&#8221;{Results}&#8221;&gt;<span>                </span></strong></p>
<p class="MsoNormal"><strong><span>            </span>&lt;mx:horizontalAxis&gt;</strong></p>
<p class="MsoNormal"><strong><span>                </span>&lt;mx:CategoryAxis categoryField=&#8221;Person&#8221;/&gt;</strong></p>
<p class="MsoNormal"><strong><span>            </span>&lt;/mx:horizontalAxis&gt;<span>                </span></strong></p>
<p class="MsoNormal"><strong><span>            </span>&lt;mx:series&gt;</strong></p>
<p class="MsoNormal"><strong><span>                </span>&lt;mx:ColumnSeries xField=&#8221;Person&#8221; yField=&#8221;Maths&#8221; displayName=&#8221;Maths&#8221;/&gt;</strong></p>
<p class="MsoNormal"><strong><span>                </span>&lt;mx:ColumnSeries xField=&#8221;Person&#8221; yField=&#8221;Science&#8221; displayName=&#8221;Science&#8221;/&gt;</strong></p>
<p class="MsoNormal"><strong><span>                </span>&lt;mx:ColumnSeries xField=&#8221;Person&#8221; yField=&#8221;MS&#8221; displayName=&#8221;MS&#8221;/&gt;</strong></p>
<p class="MsoNormal"><strong><span>            </span>&lt;/mx:series&gt;</strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;/mx:ColumnChart&gt;</strong></p>
<p class="MsoNormal"><strong><span>       </span>&lt;/mx:Panel&gt; </strong></p>
<p class="MsoNormal">And the final version of your chart should look something like below. I have added two versions of this final result one with the data tool tip.</p>
<p class="MsoNormal"><img src="http://inlinethumb38.webshots.com/34085/2245565290102642343S500x500Q85.jpg" /></p>
<p class="MsoNormal"> Result with data tool tip.</p>
<p class="MsoNormal"><img src="http://inlinethumb56.webshots.com/30967/2300465480102642343S500x500Q85.jpg" /></p>
<p>Thanks<br />
SpyCode</p>
<p><a href='http://reusablecode.us' target='_blank'>www.reusablecode.us</a><br />
<a href='http://forumr.org' target='_blank'>www.forumr.org</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spycode.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spycode.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spycode.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=6&subd=spycode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://spycode.wordpress.com/2007/12/05/regular-bar-charts-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4faa89516890ac81cae250cc07a6226?s=96&#38;d=identicon" medium="image">
			<media:title type="html">spycode</media:title>
		</media:content>

		<media:content url="http://inlinethumb38.webshots.com/34085/2245565290102642343S500x500Q85.jpg" medium="image" />

		<media:content url="http://inlinethumb56.webshots.com/30967/2300465480102642343S500x500Q85.jpg" medium="image" />
	</item>
		<item>
		<title>Bar/Column charts -Flex</title>
		<link>http://spycode.wordpress.com/2007/12/05/bar-charts-flex/</link>
		<comments>http://spycode.wordpress.com/2007/12/05/bar-charts-flex/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 07:47:05 +0000</pubDate>
		<dc:creator>spycode</dc:creator>
				<category><![CDATA[Adobe Flex 2.0]]></category>

		<guid isPermaLink="false">http://spycode.wordpress.com/2007/12/05/bar-charts-flex/</guid>
		<description><![CDATA[1)Hi all,

   Creating a BAR/Column CHART in FLEX 2.0 
In previous article we saw how to create a pie chart in flex. (HERE) In this article I will show you how to handle flex bar charts and how you can generate one of yours very easily.First of all create a new flex application [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=5&subd=spycode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoListParagraphCxSpFirst" style="text-indent:-0.25in;"><!--[if !supportLists]--><strong><span><span>1)Hi all,<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"><br />
</span></span></span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span><span><span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">   </span></span></span></strong><!--[endif]--><strong>Creating a BAR/Column CHART in FLEX 2.0 </strong></p>
<p class="MsoListParagraphCxSpMiddle">In previous article we saw how to create a pie chart in flex. <a href="http://spycode.wordpress.com/2007/12/05/flex-pie-chart/">(HERE)</a> In this article I will show you how to handle flex bar charts and how you can generate one of yours very easily.First of all create a new flex application and you should be provided with a sample mxml file where you we will write our code to generate a bar chart. Once you are ready with this open your mxml file and add following code to that file.</p>
<p class="MsoListParagraphCxSpMiddle"><strong><br />
<span style="font-size:10pt;line-height:115%;">&lt;mx:Script&gt;&lt;![CDATA[</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>     </span>import mx.collections.ArrayCollection;</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>     </span>[Bindable]</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>     </span>public var Quarterly:ArrayCollection = new ArrayCollection([</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"Jan", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1},</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"Feb", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1},</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"Mar", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1},</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"Apr", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1},</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"May", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1},</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>        </span>{Month:"Jun", Profit:Math.floor(Math.random()*98)+1, Expenses:Math.floor(Math.random()*98)+1}</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span style="font-size:10pt;line-height:115%;"><span>     </span>]);</span></strong></p>
<p class="MsoListParagraphCxSpLast"><strong><span style="font-size:10pt;line-height:115%;"><span>     </span>]]&gt;&lt;/mx:Script&gt;</span><br />
</strong></p>
<p class="MsoNormal">This is the action script code to create an array collection named quarterly which contains expenses as well as profits of 6 months. Here I have used action script’s inbuilt function to create random numbers less than 100. In this case every time you refresh your application it will come up with some random numbers and you can get your chart changed instead of keeping it static.</p>
<p class="MsoNormal">Next step is to create a panel and add a bar chart to that panel. Once we do that what we are remaining with is to create axis and provide them with the data providers which will gives us the desired chart.<span>  </span>For this please type the following code to your mxml file.</p>
<p class="MsoNormal"><strong> &lt;mx:Panel title=&#8221;Bar Chart&#8221;&gt;</strong></p>
<p class="MsoNormal"><strong><span>     </span>&lt;mx:BarChart id=&#8221;BarChart1&#8243; dataProvider=&#8221;{Quarterly}&#8221;&gt;</strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;mx:verticalAxis&gt;</strong></p>
<p class="MsoNormal"><strong><span>     </span><span>      </span>&lt;mx:CategoryAxis </strong></p>
<p class="MsoNormal"><strong><span>                </span>dataProvider=&#8221;{Quarterly}&#8221; </strong></p>
<p class="MsoNormal"><strong><span>                </span>categoryField=&#8221;Month&#8221;</strong></p>
<p class="MsoNormal"><strong><span>           </span>/&gt;</strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;/mx:verticalAxis&gt;<span>        </span></strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;mx:series&gt;</strong></p>
<p class="MsoNormal"><strong><span>           </span>&lt;mx:BarSeries </strong></p>
<p class="MsoNormal"><strong><span>                </span>yField=&#8221;Month&#8221; </strong></p>
<p class="MsoNormal"><strong><span>                </span>xField=&#8221;Profit&#8221; </strong></p>
<p class="MsoNormal"><strong><span>                </span>displayName=&#8221;Profit&#8221;</strong></p>
<p class="MsoNormal"><strong><span>           </span>/&gt;</strong></p>
<p class="MsoNormal"><strong><span>           </span>&lt;mx:BarSeries </strong></p>
<p class="MsoNormal"><strong><span>                </span>yField=&#8221;Month&#8221; </strong></p>
<p class="MsoNormal"><strong><span>                </span>xField=&#8221;Expenses&#8221; </strong></p>
<p class="MsoNormal"><strong><span>                </span>displayName=&#8221;Expenses&#8221;</strong></p>
<p class="MsoNormal"><strong><span>           </span>/&gt;</strong></p>
<p class="MsoNormal"><strong><span>        </span>&lt;/mx:series&gt;</strong></p>
<p class="MsoNormal"><strong><span>     </span>&lt;/mx:BarChart&gt;</strong></p>
<p class="MsoNormal"><strong><span>     </span>&lt;mx:Legend dataProvider=&#8221;{BarChart1}&#8221;/&gt;</strong></p>
<p class="MsoNormal"><strong><span>  </span>&lt;/mx:Panel&gt;</strong></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">If you check this code carefully I have created two vertical axis to provide the two different entities from my array collection to be displayed on the chart as well as given then data provider as the names of array collection members. At last I have created the legend to display what chart shows what data. After doing this much go ahead save and run your application. You should see some chart like below.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><img src="http://inlinethumb53.webshots.com/32436/2688371130102642343S425x425Q85.jpg" height="425" width="356" /></p>
<p class="MsoNormal"> If you want you can also show the data tool tip on rollover of the chart. In order to achieve this just add this property to your chart definition.</p>
<p class="MsoNormal"><strong>showDataTips=&#8221;true&#8221;</strong></p>
<p class="MsoNormal">Save and run your application again you should see the data tooltip on rollover of your chart as below.</p>
<p class="MsoNormal"> <img src="http://inlinethumb52.webshots.com/33971/2081191800102642343S500x500Q85.jpg" /></p>
<p class="MsoNormal">Enjoy and happy Flex charting.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p><a href="http://reusablecode.us/">www.reusablecode.us</a><br />
<a href="http://forumr.org/">www.forumr.org</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spycode.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spycode.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spycode.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=5&subd=spycode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://spycode.wordpress.com/2007/12/05/bar-charts-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4faa89516890ac81cae250cc07a6226?s=96&#38;d=identicon" medium="image">
			<media:title type="html">spycode</media:title>
		</media:content>

		<media:content url="http://inlinethumb53.webshots.com/32436/2688371130102642343S425x425Q85.jpg" medium="image" />

		<media:content url="http://inlinethumb52.webshots.com/33971/2081191800102642343S500x500Q85.jpg" medium="image" />
	</item>
		<item>
		<title>Flex Pie Chart</title>
		<link>http://spycode.wordpress.com/2007/12/05/flex-pie-chart/</link>
		<comments>http://spycode.wordpress.com/2007/12/05/flex-pie-chart/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 02:56:11 +0000</pubDate>
		<dc:creator>spycode</dc:creator>
				<category><![CDATA[Adobe Flex 2.0]]></category>

		<guid isPermaLink="false">http://spycode.wordpress.com/2007/12/05/flex-pie-chart/</guid>
		<description><![CDATA[HANDLING FLEX CHARTS
1)      Creating a pie chart in flex:
 
 
In this article I will show you how to handle flex pie charts and how you can generate one of yours very easily.First of all create a new flex application and you should be provided with a sample mxml file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=4&subd=spycode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal"><strong>HANDLING FLEX CHARTS</strong></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-0.25in;"><!--[if !supportLists]--><strong><span><span>1)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">      </span></span></span></strong><!--[endif]--><strong>Creating a pie chart in flex:</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>In this article I will show you how to handle flex pie charts and how you can generate one of yours very easily.First of all create a new flex application and you should be provided with a sample mxml file where you we will write our code to generate a pie chart. Once you are ready with this opent your mxml file and add following code to that file.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>&lt;mx:Script&gt;&lt;![CDATA[</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span></span>import mx.collections.ArrayCollection;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>    </span>[Bindable]</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>    </span>public var Users:ArrayCollection = new ArrayCollection([</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "Billy", Amount: 2000},</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "John", Amount: 1000},</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "Mischel", Amount: 100},</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "Tony", Amount: 450},</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "Bob", Amount: 100},</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>{User: "Gary", Amount: 200}</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>    </span>]);</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>    </span>]]&gt;&lt;/mx:Script&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>If you are not familiar with the flex than I must mention here that the code you see above is the action script block which can be included in you mxml file using<span>  </span>this following tags.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>&lt;mx:Script&gt;&lt;![CDATA[ ..<span>    </span>]]&gt;&lt;/mx:Script&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>Now if you take a look at the code below you will see that I have created an array collection in Action script 3 of user with their relevant amount of bonus they will be provided. This is the basic code that you have to write. This will be the data source of your flex pie chart that you are going to generate in a while.Now in your application add a new panel which is going to hold the pie chart object. Then add the pie chart component form the toolbar menu.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>Your code should look like this.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>&lt;mx:Panel&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>&lt;mx:PieChart id=&#8221;pie&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>&lt;/mx:PieChart&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>    </span>&lt;/mx:Panel&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>Now once you have added this much you are ready to provide to data source to this chart component and it will be ready for you. Modify your code so that it looks like one shown below.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>&lt;mx:Panel&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>        </span>&lt;mx:PieChart id=&#8221;pie&#8221; dataProvider=&#8221;{ Users }&#8221; showDataTips=&#8221;true&#8221;&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>            </span>&lt;mx:series&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>                </span>&lt;mx:PieSeries field=&#8221; Amount &#8221; nameField=&#8221;Expense&#8221;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>                    </span>labelPosition=&#8221;callout&#8221;/&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>            </span>&lt;/mx:series&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span>      </span><span>  </span>&lt;/mx:PieChart&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong><span> </span>&lt;/mx:Panel&gt;</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>If you see carefully you must notice the dataProvider property where I have defined the name of the arraycollection that we have created in the action script block. This is to inform the chart component that the data has to be take from this source.</strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>Next important thing is the<span>  </span>series tag that we have defined. This is to define that which column of the array collection has to be provided as the series to the flex chart. Another property is the lablePosition=”callout” . This guides chart component weather to show data tips out side the chart or inside the pie chart. </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong> </strong></p>
<p class="MsoListParagraphCxSpMiddle"><strong>Another and last thing to notice is this. showDataTips=&#8221;true&#8221;. This property will allow the data tip to be displayed on the rollover event of your chart. Once you are done with all these go ahead and run your application it should looks something like below.</strong></p>
<p class="MsoListParagraphCxSpMiddle">&nbsp;</p>
<p class="MsoListParagraphCxSpMiddle"><img src="http://aycu39.webshots.com/image/34918/2000654079756594495_rs.jpg" /></p>
<p class="MsoListParagraphCxSpMiddle"> <strong> </strong></p>
<p class="MsoListParagraphCxSpLast"><strong>That’s it. Now you can see how easy it is to create a flex pie chart in your flex application. Go ahead and play with the component properties and you can discover so many new things in it.</strong></p>
<p><a href="http://reusablecode.us/">www.reusablecode.us</a><br />
<a href="http://forumr.org/">www.forumr.org</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spycode.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spycode.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spycode.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=4&subd=spycode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://spycode.wordpress.com/2007/12/05/flex-pie-chart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4faa89516890ac81cae250cc07a6226?s=96&#38;d=identicon" medium="image">
			<media:title type="html">spycode</media:title>
		</media:content>

		<media:content url="http://aycu39.webshots.com/image/34918/2000654079756594495_rs.jpg" medium="image" />
	</item>
		<item>
		<title>Welcome All!!</title>
		<link>http://spycode.wordpress.com/2007/11/30/hello-world/</link>
		<comments>http://spycode.wordpress.com/2007/11/30/hello-world/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 19:01:19 +0000</pubDate>
		<dc:creator>spycode</dc:creator>
				<category><![CDATA[General Discussion]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to Spycode&#8217;s web blog. Keep updated with new technologies like flex and silverlight with this blog.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=1&subd=spycode&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Welcome to Spycode&#8217;s web blog. Keep updated with new technologies like flex and silverlight with this blog.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spycode.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spycode.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spycode.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spycode.wordpress.com&blog=2235242&post=1&subd=spycode&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://spycode.wordpress.com/2007/11/30/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4faa89516890ac81cae250cc07a6226?s=96&#38;d=identicon" medium="image">
			<media:title type="html">spycode</media:title>
		</media:content>
	</item>
	</channel>
</rss>