<?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>Sanjeev Shrestha &#187; Api</title>
	<atom:link href="http://www.sanjeevshrestha.com.np/category/webservices/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sanjeevshrestha.com.np</link>
	<description>Blogging on Joomla Development /Codeigniter/JQuery/Mootools/Wordpress - All Related to Web</description>
	<lastBuildDate>Sat, 27 Aug 2011 17:18:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Using Google Chart API in your website</title>
		<link>http://www.sanjeevshrestha.com.np/2009/05/using-google-chart-api-in-your-website/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/05/using-google-chart-api-in-your-website/#comments</comments>
		<pubDate>Wed, 06 May 2009 08:44:42 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Api]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Chart API]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chart API]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/?p=199</guid>
		<description><![CDATA[Charts are useful and more informative way of representing data in a website. There are many commercial and opensource components and libraries available to implement charts in a website. Most of them are flash based and very attractive. There may be cases where you don&#8217;t want or can&#8217;t use flash based charts. So what are [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com.np/wp-content/uploads/2009/05/googl.png" />Charts are useful and more informative way of representing data in a website. There are many commercial and opensource components and libraries available to implement charts in a website. Most of them are flash based and very attractive. There may be cases where you don&#8217;t want or can&#8217;t use flash based charts. So what are the alternatives? Write your own library using <b>gd</b> or any other image manipulation library or Use <b>Google Chart API</b>. Yes, google chart api is here to rescue you from all the tedious coding you will do to create your own library. <span id="more-199"></span></p>
<p>Google Chart API is simple and easy to implement and produces nifty chart in your website with the data you supplied to the API. The API generates a PNG-format image in response to a url. The API generates different kinds of Charts like bar, line, pie, 3D pie and that too in different color and sizes. isn&#8217;t that cool?</p>
<p>As already mentioned the google chart API is simple and easy to implement. (Read more about the chart API at <a href="http://code.google.com/apis/chart/">http://code.google.com/apis/chart/</a>) You just need to form a url in following format and send it to google. <br />
<blockquote>
<p><code>http://chart.apis.google.com/chart?
<parameter 1=""> </param>&amp;
<parameter 2=""> </param></parameter></parameter></code><code>&amp;
<parameter n=""> </param></parameter></code></p>
<p><code>e.g. </code><code>http://chart.apis.google.com/chart?chs=350x150&amp;chd=t:70,30&amp;cht=p3&amp;chl=</code><code>Joomla|Drupal</code></p>
</blockquote>
<p><code>Yes generating chart is that simple. Just copy the above example and see for yourself. Now let me explain the chart parameters.</code></p>
<blockquote><p><code>http://chart.apis.google.com/chart?</code> is the Chart API&#8217;s location.<br /><code>&amp;</code> separates parameters.<br /><code>chs=350x150</code> is the chart&#8217;s size in pixels.<br /><code>chd=t:70,30</code> is the chart&#8217;s data.<br /><code>cht=p3</code> is the chart&#8217;s type.<br /><code>chl=Joomla|Drupal</code> is the chart&#8217;s label. </p></blockquote>
<p>You must at least provide chs, chd, cht parameters to the API. Now let us discuss some variations of&nbsp; parameters</p>
<p>To know more about the Google Chart API, refer to google code at <a href="http://code.google.com/apis/chart/">http://code.google.com/apis/chart/</a>. The API docs provides all the information on how to use the Chart API in your website. </p>
<p>Happy Reading!</p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=17f3ca85-7bf3-8022-8a59-037c9b304784" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/05/using-google-chart-api-in-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.sanjeevshrestha.com.np @ 2012-05-19 15:24:50 -->
