<?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/"
	>

<channel>
	<title>Toobler Technologies &#187; Charting</title>
	<atom:link href="http://toobler.com/blog/tag/charting/feed/" rel="self" type="application/rss+xml" />
	<link>http://toobler.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 26 May 2011 11:34:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trouble with CFChart &#8211; Image expired</title>
		<link>http://toobler.com/blog/coldfusion/trouble-with-cfchart-image-expired/</link>
		<comments>http://toobler.com/blog/coldfusion/trouble-with-cfchart-image-expired/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 06:59:29 +0000</pubDate>
		<dc:creator>Thazleem Ali</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Charting]]></category>

		<guid isPermaLink="false">http://toobler.com/blog/?p=67</guid>
		<description><![CDATA[Thanks to the few users who acknowledged my last post on the topic of CFChart. I hope it has been (and will continue) useful to even more people. One particular developer, delta_mu, commented on a problem he was having when using the CFChart as explained in my post. When a user reaches a page with [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to the few users who acknowledged my last post on the topic of CFChart. I hope it has been (and will continue) useful to even more people. One  particular developer, delta_mu, commented on a problem he was having when using the CFChart as explained in my post.</p>
<p>When a user reaches a page with cfcharts in flash format by clicking the browser &#8216;back&#8217; button, instead of the original flash chart, an image that says “Image expired.  Please refresh the page to view the image” is displayed.(Sample image shown below) Very clearly, not desirable.</p>
<p><a href="http://toobler.com/blog/wp-content/uploads/2010/03/cfcharts-reload-page.jpg"><img class="alignnone size-medium wp-image-70" title="cfcharts reload page" src="http://toobler.com/blog/wp-content/uploads/2010/03/cfcharts-reload-page-300x241.jpg" alt="" width="300" height="241" /></a></p>
<p>The problem occurs for two reasons.</p>
<ol>
<li>Lack of session management.</li>
<li>Short image caching duration.</li>
</ol>
<p>When we use the cfchart tag to create a chart, coldfusion creates a temporary SWF or JPG or PNG image for display. If no session management is enabled, the cluster manager will send the user to a different server each time and hence there will not be any image to display. This can be prevented by enabling session management and the process is called session affinity.</p>
<p>However, in this user&#8217;s case, I doubt whether this was the case as he most probably uses a developer edition for such purposes and hence no clustering is involved as it is a single server setup. Thus it must be reason number two – The cache.</p>
<p>Once a request has been made, by default, the images will only kept for a duration of 5 seconds in the cache. Hence when the user hits the back button, the request no longer exists. This duration can be extended by following the few simple steps listed below, courtesy Prayank&#8217;s blog.</p>
<ol>
<li>Stop the CFServer.</li>
<li>Open coldfusion 	x.x\lib\webcharts3d.xml</li>
<li>Find and change the values 	“minTimeOut” &amp;  “maxTimeOut”.</li>
<li>Restart the server.</li>
</ol>
<p>Thats it. You are ready to go. But please remember that this solution is inefficient when you have a large number of charts to display.</p>
]]></content:encoded>
			<wfw:commentRss>http://toobler.com/blog/coldfusion/trouble-with-cfchart-image-expired/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Cfchart for charts and graphs in Coldfusion</title>
		<link>http://toobler.com/blog/coldfusion/using-cfchart-for-charts-and-graphs-in-coldfusion/</link>
		<comments>http://toobler.com/blog/coldfusion/using-cfchart-for-charts-and-graphs-in-coldfusion/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 06:47:06 +0000</pubDate>
		<dc:creator>Thazleem Ali</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Charting]]></category>

		<guid isPermaLink="false">http://toobler.com/blog/?p=25</guid>
		<description><![CDATA[Coldfusion makes it really simple to create and insert any kind of charts and other displays with the CFChart tag. While this is really an old feature(Available way back in ColdFusion 5), and little has been added to it in later versions, what many people don&#8217;t know is that it has now become much more [...]]]></description>
			<content:encoded><![CDATA[<p>Coldfusion makes it really simple to create and insert any kind of charts and other displays with the CFChart tag. While this is really an old feature(Available way back in ColdFusion 5), and little has been added to it in later versions, what many people don&#8217;t know is that it has now become much more efficient and actually holds its own against using client side JFQuery, CSS and other flash techniques. Cfchart is highly customizable and hence requires no need to involve designers or other javascript expert friends/colleagues whom you might need if you go for other methods. Below are some sample charts generated using CFChart with little styling options applied.</p>
<p><a href="http://toobler.com/blog/wp-content/uploads/2010/03/CFCharts-image_new.jpg"><img class="alignnone size-full wp-image-32" title="CFCharts image_new" src="http://toobler.com/blog/wp-content/uploads/2010/03/CFCharts-image_new.jpg" alt="" width="600" height="450" /></a></p>
<p>Now lets have a look at the code required to generate the above CFCharts.</p>
<p>&lt;cfchart format=&#8221;png&#8221; name=&#8221;mychart&#8221; title=”Fruits Harvest” showlegend=&#8221;true&#8221;&gt;<br />
&lt;cfchartseries type=&#8221;pie&#8221;&gt;<br />
&lt;cfchartdata item=&#8221;Mangoes Harvest&#8221; value=&#8221;5000&#8243;/&gt;<br />
&lt;cfchartdata item=&#8221;Oranges Harvest&#8221; value=&#8221;4000&#8243;/&gt;<br />
&lt;cfchartdata item=&#8221;Apples Harvest&#8221; value=&#8221;3000&#8243;/&gt;<br />
&lt;cfchartdata item=&#8221;Grapes Harvest&#8221; value=&#8221;2000”/&gt;<br />
&lt;/cfchartseries&gt;<br />
&lt;/cfchart&gt;</p>
<p>The result of a query may directly be converted to a chart by using the code below. Coldfusion will generate the chart data items on its own from the query</p>
<p>&lt;cfchartseries type=&#8221;bar&#8221; query=&#8221;data&#8221; itemcolumn=&#8221;name&#8221; valuecolumn=&#8221;sales&#8221;/&gt;</p>
<p>Cfchart and Cfchartseries have a large number of attributes which maybe used to customize chart. You can check the complete list on Adobe Livedocs at <a href="http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-792e.html">http://bit.ly/cjiRPs</a> and <a href="http://bit.ly/b3pioP" target="_blank">http://bit.ly/b3pioP</a></p>
<p>The type attribute of Cfchartseries is the most important among the list. It lets you choose from a wide array of chart types such as bar, line, pyramid, area, horizontalbar, cone, curve, cylinder, step, scatter and pie.</p>
<p>But what really takes the pie is the amount of styling options Coldfusion gives to the developers. Instead of setting each of the attributes, I found an easy way of doing this by modifying the built in style files in the folder cf_root\charting\styles and saving them under a new name to access. The style files are simple XML files and modifying them is really easy. One of the coolest attributes was the &#8220;show3D&#8221; attribute, which gives the chart a 3D effect. The appearance maybe modified to such extents that people will have a hard time figuring out it is custom generated and not designed by a web designer specifically.</p>
]]></content:encoded>
			<wfw:commentRss>http://toobler.com/blog/coldfusion/using-cfchart-for-charts-and-graphs-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

