<?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: Google Charts API - using PHP</title>
	<atom:link href="http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/</link>
	<description>Radio, broadcasting, websites, and beer. Possibly.</description>
	<pubDate>Thu, 08 Jan 2009 13:33:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Toby</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-31674</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Sun, 20 Jan 2008 12:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-31674</guid>
		<description>Thanks for this James - being close to newbie status, this just what I was looking for. Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks for this James - being close to newbie status, this just what I was looking for. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneesh Kulkarni</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-31573</link>
		<dc:creator>Aneesh Kulkarni</dc:creator>
		<pubDate>Sat, 12 Jan 2008 14:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-31573</guid>
		<description>Thanks, this is great!  Works perfectly.

One small note: The last line (return $chartData."&#38;chxt=y&#38;chxl=0:&#124;0&#124;".$maxValue; -- which puts a scale on the axis) assumes a vertical orientation.  Anyone interested in a graph with horizontal orientation (ie bhs or bhg) should write chxt=x instead of chxt=y to get the desired graph.</description>
		<content:encoded><![CDATA[<p>Thanks, this is great!  Works perfectly.</p>
<p>One small note: The last line (return $chartData.&#8221;&amp;chxt=y&amp;chxl=0:|0|&#8221;.$maxValue; &#8212; which puts a scale on the axis) assumes a vertical orientation.  Anyone interested in a graph with horizontal orientation (ie bhs or bhg) should write chxt=x instead of chxt=y to get the desired graph.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kev</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-31558</link>
		<dc:creator>Kev</dc:creator>
		<pubDate>Fri, 11 Jan 2008 16:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-31558</guid>
		<description>Hi James

Nice work!

Can I just ask - I've used your code in a dynamcially generated HTML table (now with chart!) but I'm having difficulties loading my string into the array of your code i.e.

$test_data=array(0.5,6,12,17,2,0.3,9);

becomes

$string1 ="0.5,6,12,17,2,0.3,9"
$test_data=array($string1);

 My string is being created at the same time as the table and echoing the data gives a result of 0.5,6,12,17,2,0.3,9 and the max value is also 0.5,6,12,17,2,0.3,9 but no data??

 Any suggestions?

Thanks

Kev</description>
		<content:encoded><![CDATA[<p>Hi James</p>
<p>Nice work!</p>
<p>Can I just ask - I&#8217;ve used your code in a dynamcially generated HTML table (now with chart!) but I&#8217;m having difficulties loading my string into the array of your code i.e.</p>
<p>$test_data=array(0.5,6,12,17,2,0.3,9);</p>
<p>becomes</p>
<p>$string1 =&#8221;0.5,6,12,17,2,0.3,9&#8243;<br />
$test_data=array($string1);</p>
<p> My string is being created at the same time as the table and echoing the data gives a result of 0.5,6,12,17,2,0.3,9 and the max value is also 0.5,6,12,17,2,0.3,9 but no data??</p>
<p> Any suggestions?</p>
<p>Thanks</p>
<p>Kev</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William T</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-27998</link>
		<dc:creator>William T</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-27998</guid>
		<description>(or, I meant to add, might they slap on a large Copyright Google notice or start running inline text ads based on the chart-data?)

The charts *are* very pretty though..</description>
		<content:encoded><![CDATA[<p>(or, I meant to add, might they slap on a large Copyright Google notice or start running inline text ads based on the chart-data?)</p>
<p>The charts *are* very pretty though..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William T</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-27991</link>
		<dc:creator>William T</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-27991</guid>
		<description>The charts are *very* elegant (especially the pie charts and venn diagrams) - however, maybe its just me, how do we have confidence that Google won't withdraw it or start to charge for it or it'll suddenly get very slow or go away altogether?

Yes, everyone's using Google Maps these days, but I just wonder how many "large" or "critical" sites would be prepared to risk this (there's a 50,000 queries per day limit.)

Sorry to be boring.</description>
		<content:encoded><![CDATA[<p>The charts are *very* elegant (especially the pie charts and venn diagrams) - however, maybe its just me, how do we have confidence that Google won&#8217;t withdraw it or start to charge for it or it&#8217;ll suddenly get very slow or go away altogether?</p>
<p>Yes, everyone&#8217;s using Google Maps these days, but I just wonder how many &#8220;large&#8221; or &#8220;critical&#8221; sites would be prepared to risk this (there&#8217;s a 50,000 queries per day limit.)</p>
<p>Sorry to be boring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olly</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26963</link>
		<dc:creator>Olly</dc:creator>
		<pubDate>Sat, 08 Dec 2007 00:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26963</guid>
		<description>Have you seen Swivel?  

I had a very basic look/play with it, don't know whether it can help but looks quite good. http://www.swivel.com/

Olly</description>
		<content:encoded><![CDATA[<p>Have you seen Swivel?  </p>
<p>I had a very basic look/play with it, don&#8217;t know whether it can help but looks quite good. <a href="http://www.swivel.com/">http://www.swivel.com/</a></p>
<p>Olly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lexalytics Development Blog &#187; Blog Archive &#187; Google Charts API</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26848</link>
		<dc:creator>Lexalytics Development Blog &#187; Blog Archive &#187; Google Charts API</dc:creator>
		<pubDate>Fri, 07 Dec 2007 11:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26848</guid>
		<description>[...] via the BBC Backstage mailing list (and James Cridlands personal blog) that Google have released a simple charting [...]</description>
		<content:encoded><![CDATA[<p>[...] via the BBC Backstage mailing list (and James Cridlands personal blog) that Google have released a simple charting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26768</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Fri, 07 Dec 2007 02:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26768</guid>
		<description>Hello

Thanks for the code!

What I don't like about Google chart API is the fact axis don't have nothing to do with values.

Thus, in order for a simple x,y graph to make sense, you have to find the percentage of all your values and then plot them. I mean, if your max value is 150, you must make 150=100% and then calculate all values below it in terms of percentage. Your laber on the x axe will be 150, but your value will be 100%.

I wonder who will be the first to do a PHP class to do this... ;)

Regards,
Jose

Also: it does not work on forums with the [IMG] tag...
It would be usefull for the PHP class to load the url as binary and outputs it as .png, so that it can be recognized everywhere.</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Thanks for the code!</p>
<p>What I don&#8217;t like about Google chart API is the fact axis don&#8217;t have nothing to do with values.</p>
<p>Thus, in order for a simple x,y graph to make sense, you have to find the percentage of all your values and then plot them. I mean, if your max value is 150, you must make 150=100% and then calculate all values below it in terms of percentage. Your laber on the x axe will be 150, but your value will be 100%.</p>
<p>I wonder who will be the first to do a PHP class to do this&#8230; ;)</p>
<p>Regards,<br />
Jose</p>
<p>Also: it does not work on forums with the [IMG] tag&#8230;<br />
It would be usefull for the PHP class to load the url as binary and outputs it as .png, so that it can be recognized everywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Stevens</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26764</link>
		<dc:creator>Chris Stevens</dc:creator>
		<pubDate>Fri, 07 Dec 2007 02:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26764</guid>
		<description>Off topic... Is it me, or do you have a version of this blog optimised for the iPhone/ipod? It looked very neat on mine over the weekend!</description>
		<content:encoded><![CDATA[<p>Off topic&#8230; Is it me, or do you have a version of this blog optimised for the iPhone/ipod? It looked very neat on mine over the weekend!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Cridland</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26737</link>
		<dc:creator>James Cridland</dc:creator>
		<pubDate>Fri, 07 Dec 2007 00:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26737</guid>
		<description>Agreed, Barry - I've changed the code accordingly. (Didn't know about max().)</description>
		<content:encoded><![CDATA[<p>Agreed, Barry - I&#8217;ve changed the code accordingly. (Didn&#8217;t know about max().)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Hunter</title>
		<link>http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/comment-page-1/#comment-26733</link>
		<dc:creator>Barry Hunter</dc:creator>
		<pubDate>Thu, 06 Dec 2007 23:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://james.cridland.net/blog/2007/12/06/google-charts-api-using-php/#comment-26733</guid>
		<description>That's great, thanks!

However would simply the use of the max() function be a better method rather than sorting to get the highest value, as that can take an array directly.</description>
		<content:encoded><![CDATA[<p>That&#8217;s great, thanks!</p>
<p>However would simply the use of the max() function be a better method rather than sorting to get the highest value, as that can take an array directly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
