<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Andrew Schwabe&apos;s Blog - charting</title>
			<link>http://blog.schwabe.net/index.cfm</link>
			<description>Flex and CF and all things Wack.</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 09:18:53 -0400</pubDate>
			<lastBuildDate>Tue, 21 Apr 2009 14:31:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>aschwabe@schwabe.net</managingEditor>
			<webMaster>aschwabe@schwabe.net</webMaster>
			
			
			
			
			
			<item>
				<title>Presentation Files from CFUnited Express New York on April 20 2009</title>
				<link>http://blog.schwabe.net/index.cfm/2009/4/21/Presentation-Files-from-CFUnited-Express-New-York-on-April-20-2009</link>
				<description>
				
				Here are the presentation files I used during my talk in NYC yesterday.  The unexpected &quot;intermission&quot; has been omitted from the Powerpoint file :)

&lt;a href=&quot;http://www.schwabe.net/2009%20Charting_with_CF_Flex.zip&quot;&gt;http://www.schwabe.net/2009%20Charting_with_CF_Flex.zip&lt;/a&gt;

Thanks again to Liz, Nafisa, and the others from CF United, the speakers and PACE University for making this a great event!  Looking forward to seeing you all in August at CF United!
				
				</description>
						
				
				<category>Adobe Flex</category>				
				
				<category>charting</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 21 Apr 2009 14:31:00 -0400</pubDate>
				<guid>http://blog.schwabe.net/index.cfm/2009/4/21/Presentation-Files-from-CFUnited-Express-New-York-on-April-20-2009</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>I have been invited to speak at CF United Express in NYC on 4/20/09</title>
				<link>http://blog.schwabe.net/index.cfm/2009/3/20/I-have-been-invited-to-speak-at-CF-United-Express-in-NYC-on-42009</link>
				<description>
				
				Thanks to Liz Frederick and the CF United team for their invitation!

I will be presenting on &quot;Charting with ColdFusion and Flex&quot; and will go through step by step on how to build charts using Flex&apos;s charting package.  In addition, we will go over how to build a reusable chart project where you can use the Flex/Ajax bridge to push chart data into your Flex app using Javascript/JSON/etc.

Should be a good time, come on out!  The details are online here: &lt;a href=&quot;http://express.cfunited.com/go/newyork/2009/&quot;&gt;http://express.cfunited.com/go/newyork/2009/&lt;/a&gt;

Don&apos;t forget that I will also be speaking at CFUnited August 12-15 2009 in Leesburg, VA about integrating Flex with Google App Engine (GAE).  Details are at &lt;a href=&quot;http://www.cfunited.com&quot;&gt;www.cfunited.com&lt;/a&gt;.

&lt;a href=&quot;http://cfunited.com&quot;&gt;&lt;img src=&quot;http://cfunited.com/images/470x60_cfunited_09.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;
				
				</description>
						
				
				<category>Adobe Flex</category>				
				
				<category>charting</category>				
				
				<category>Flash</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 20 Mar 2009 19:50:00 -0400</pubDate>
				<guid>http://blog.schwabe.net/index.cfm/2009/3/20/I-have-been-invited-to-speak-at-CF-United-Express-in-NYC-on-42009</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>CF United 2008 Presentation Files</title>
				<link>http://blog.schwabe.net/index.cfm/2008/6/19/CF-United-2008-Presentation-Files</link>
				<description>
				
				Here are the presentation files and sample flex apps from my presentation on &amp;quot;Charting with CF and Flex&amp;quot; on Friday June 20, 2008.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.schwabe.net/RIA328_Charting_with_CF_and_Flex.zip&quot;&gt;RIA328_Charting_with_CF_and_Flex.zip&lt;/a&gt; (5.5M)
				
				</description>
						
				
				<category>Adobe Flex</category>				
				
				<category>Actionscript</category>				
				
				<category>charting</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Thu, 19 Jun 2008 02:00:00 -0400</pubDate>
				<guid>http://blog.schwabe.net/index.cfm/2008/6/19/CF-United-2008-Presentation-Files</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Google Chart API</title>
				<link>http://blog.schwabe.net/index.cfm/2007/12/7/Google-Chart-API</link>
				<description>
				
				&lt;img vspace=&quot;5&quot; hspace=&quot;5&quot; border=&quot;1&quot; align=&quot;right&quot; src=&quot;http://chart.apis.google.com/chart?cht=p3&amp;amp;chd=s:hW&amp;amp;chs=250x100&amp;amp;chl=Hello|World&quot; alt=&quot;&quot; /&gt;From the incredible minds at Google :)&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://code.google.com/apis/chart/&quot;&gt; http://code.google.com/apis/chart/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This impressive little library lets you generate PNG chart files from a single URL request string.&amp;nbsp; Since people typically need to pass lots and lots of data for charting, they came up with a really creative way to compress the values, and provide a javascript snippet for automating the process.&lt;br /&gt;
&lt;br /&gt;
So the nifty chart you see to the right is a &amp;quot;hello world&amp;quot; app using their API.&amp;nbsp; It ultimately comes down to a simple URL request of:&lt;br /&gt;
&lt;br /&gt;
http://chart.apis.google.com/chart?cht=p3&amp;amp;chd=s:hW&amp;amp;chs=250x100&amp;amp;chl=Hello|World&lt;br /&gt;
&lt;br /&gt;
Quite impressive and easy to use!&lt;br /&gt;
&lt;br /&gt;
While this doesn&apos;t provide the stellar interactivity and depth of integration that Flex charts do, it certainly provides a way to do nice looking charts with a quick turn-around.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
According to their docs, you can freely use this so long as you don&apos;t regularly exceed the 50,000 hits per day limit at which point they may block you.&amp;nbsp; I think most of us will not be hitting it quite this much.&lt;br /&gt;
&lt;br /&gt;
Some samples:&lt;br /&gt;
&lt;br /&gt;
&lt;table width=&quot;200&quot; cellspacing=&quot;5&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; align=&quot;&quot; summary=&quot;&quot;&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;img src=&quot;http://chart.apis.google.com/chart?cht=lc&amp;amp;chd=s:9gounjqGJD&amp;amp;chco=008000&amp;amp;chls=2.0,4.0,1.0&amp;amp;chxt=x,y&amp;amp;chxl=0:|Sep|Oct|Nov|Dec|1:||50|100&amp;amp;chs=160x125&amp;amp;chm=r,E5ECF9,0,0.75,0.25|r,000000,0,0.1,0.11&quot; alt=&quot;&quot; /&gt;&lt;/td&gt;
            &lt;td&gt;&lt;img src=&quot;http://chart.apis.google.com/chart?cht=lc&amp;amp;chd=s:93zyvneTTOMJMLIJFHEAECFJGHDBFCFIERcgnpy45879,IJKNUWUWYdnswz047977315533zy1246872tnkgcaZQONHCECAAAAEII&amp;amp;chls=3,6,3|1,1,0&amp;amp;chs=160x125&quot; alt=&quot;&quot; /&gt;&lt;/td&gt;
            &lt;td&gt;&lt;img src=&quot;http://chart.apis.google.com/chart?cht=bhs&amp;amp;chco=ff0000,00ff00,0000ff,&amp;amp;chs=160x125&amp;amp;chd=s:FOE,THE,Bar&amp;amp;chxt=x,y&amp;amp;chxl=1:|Dec|Nov|Oct|0:||20K||60K||100K|&quot; alt=&quot;&quot; /&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
				
				</description>
						
				
				<category>charting</category>				
				
				<category>google</category>				
				
				<pubDate>Fri, 07 Dec 2007 02:00:00 -0400</pubDate>
				<guid>http://blog.schwabe.net/index.cfm/2007/12/7/Google-Chart-API</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Using JFreeChart with ColdFusion</title>
				<link>http://blog.schwabe.net/index.cfm/2005/7/22/Using-JFreeChart-with-ColdFusion</link>
				<description>
				
				&lt;div class=&quot;entry&quot;&gt;
&lt;p&gt;This was originally posted in &lt;a target=&quot;_blank&quot; href=&quot;http://weblogs.macromedia.com/cantrell/archives/2003/06/using_coldfusio.cfm&quot;&gt;Christian Cantrell&apos;s blog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Well, your post just helped me figure out a long time nagging problem. I have been working on a CF wrapper for JFreeChart to generate on-the-fly charts, and have been stumped with corrupted output, until I saw your fix about the double getResponse() method calls. With that change, all works great! &lt;/p&gt;
&lt;p&gt;For those who don&apos;t understand WHY you might need to do this, here is sampe code that creates a bar chart on-the-fly (no caching on the file system) and outputs directly to the browser a JPEG image (or a PNG with incredible quality!): &lt;/p&gt;
&lt;p&gt;&amp;lt;!--- first generate some data ---&amp;gt;&lt;br /&gt;
barDataset = CreateObject(&amp;quot;java&amp;quot;, &amp;quot;org.jfree.data.category.DefaultCategoryDataset&amp;quot;); &lt;br /&gt;
Randomize(numberformat(timeformat(now(),&amp;quot;ss&amp;quot;))); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2001&amp;quot;, &amp;quot;Q1&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2001&amp;quot;, &amp;quot;Q2&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2001&amp;quot;, &amp;quot;Q3&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2001&amp;quot;, &amp;quot;Q4&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2002&amp;quot;, &amp;quot;Q1&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2002&amp;quot;, &amp;quot;Q2&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); &lt;br /&gt;
barDataset.setValue(numberformat(rval), &amp;quot;2002&amp;quot;, &amp;quot;Q3&amp;quot;); &lt;br /&gt;
rval = int(randrange(1,500)); barDataset.setValue(numberformat(rval), &amp;quot;2002&amp;quot;, &amp;quot;Q4&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;lt;!--- create the chart objects ---&amp;gt;&lt;br /&gt;
chart = CreateObject(&amp;quot;java&amp;quot;, &amp;quot;org.jfree.chart.JFreeChart&amp;quot;); &lt;br /&gt;
chartfactory = CreateObject(&amp;quot;java&amp;quot;, &amp;quot;org.jfree.chart.ChartFactory&amp;quot;); &lt;br /&gt;
chartorient = CreateObject(&amp;quot;java&amp;quot;, &amp;quot;org.jfree.chart.plot.PlotOrientation&amp;quot;); &lt;br /&gt;
chartutil = CreateObject(&amp;quot;java&amp;quot;, &amp;quot;org.jfree.chart.ChartUtilities&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;lt;!--- create our chart ---&amp;gt;&lt;br /&gt;
chart = chartfactory.createBarChart3D (&amp;quot;Sample Bar Chart&amp;quot;, &amp;quot;Category&amp;quot;, &amp;quot;Value&amp;quot;, barDataset, chartorient.VERTICAL, true, true, true); &lt;/p&gt;
&lt;p&gt;&amp;lt;!--- MAGICALLY get the correct response object... ---&amp;gt;&lt;br /&gt;
response = getPageContext().getResponse().getResponse(); &lt;br /&gt;
response.setContentType(&amp;quot;image/jpeg&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;lt;!--- write chart directly to output stream ---&amp;gt;&lt;br /&gt;
chartutil.writeChartAsJPEG(response.getOutputStream(), &lt;br /&gt;
&amp;nbsp;&amp;nbsp; 100, // jpeg quality 0-100 &lt;br /&gt;
&amp;nbsp;&amp;nbsp; chart, // chart object &lt;br /&gt;
&amp;nbsp;&amp;nbsp; 500, // width &lt;br /&gt;
&amp;nbsp;&amp;nbsp; 300); // height &lt;/p&gt;
&lt;p&gt;response.flush(); &lt;br /&gt;
response.close(); &lt;/p&gt;
&lt;p&gt;If anybody else needs help with the above code, email me. &lt;/p&gt;
&lt;p&gt;cheers &lt;/p&gt;
&lt;/div&gt;
				
				</description>
						
				
				<category>Open Source</category>				
				
				<category>charting</category>				
				
				<category>Java</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 22 Jul 2005 02:00:00 -0400</pubDate>
				<guid>http://blog.schwabe.net/index.cfm/2005/7/22/Using-JFreeChart-with-ColdFusion</guid>
				
			</item>
			
		 	
			</channel></rss>