<?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>Rails on the Run &#187; googlecharts</title>
	<atom:link href="http://railsontherun.com/category/gems-libs/googlecharts-gems-libs/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsontherun.com</link>
	<description>Rails experiments by Matt Aimonetti</description>
	<lastBuildDate>Tue, 23 Feb 2010 07:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Googlecharts 1.5.1</title>
		<link>http://railsontherun.com/2010/02/03/googlecharts-1-5-1/</link>
		<comments>http://railsontherun.com/2010/02/03/googlecharts-1-5-1/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 05:18:23 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Gems & Libs]]></category>
		<category><![CDATA[googlecharts]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[google charts]]></category>

		<guid isPermaLink="false">http://railsontherun.com/?p=1722</guid>
		<description><![CDATA[To celebrate the relaunch of this site and since we are waiting for Rails 3.0 beta to be released, I figured I should share with you what I worked on the other night. I merged patches, refactored and released a new version of googlecharts, my Gem to create graphs using Google Chart API. sudo gem [...]]]></description>
			<content:encoded><![CDATA[<p>To celebrate the relaunch of this site and since we are waiting for Rails 3.0 beta to be released, I figured I should share with you what I worked on the other night.</p>
<p>I merged patches, refactored and released a new version of googlecharts, my Gem to create graphs using Google Chart API.</p>
<p><code>sudo gem install googlecharts</code></p>
<p>Here is a quick example of how the API works when dealing with a complex graph:</p>
<pre class="brush:ruby">require 'gchart' # or require 'googlecharts' if you prefer to use the Googlecharts constant.
title = "Player Count"
size = "575x300"
data = [85,107,123,131,155,172,173,189,203,222,217,233,250,239,256,267,247,261,275,295,288,305,322,307,325,347,331,346,363,382,343,359,383,352,374,393,358,379,396,416,377,398,419,380,409,426,453,432,452,465,436,460,480,440,457,474,501,457,489,507,347,373,413,402,424,448,475,488,513,475,507,530,440,476,500,518,481,512,531,367,396,423,387,415,446,478,442,469,492,463,489,508,463,491,518,549,503,526,547,493,530,549,493,520,541,564,510,535,564,492,512,537,502,530,548,491,514,538,568,524,548,568,512,533,552,577,520,545,570,516,536,555,514,536,566,521,553,579,604,541,569,595,551,581,602,549,576,606,631,589,615,650,597,624,646,672,605,626,654,584,608,631,574,597,622,559,591,614,644,580,603,629,584,615,631,558,591,618,641,314,356,395,397,429,450,421,454,477,507,458,490,560,593]
Gchart.line(:title =&gt; title, :size =&gt; size, :data =&gt; data, :axis_with_labels =&gt; 'x,y', :line_color =&gt; '1e60cc', :axis_labels =&gt; [(1.upto(24).to_a &lt;&lt; 1)], :max_value =&gt; 700, :custom =&gt; 'chg=10,15,1,0')
</pre>
<p>Which provides you with the url or image tag (or downloaded file) that produces the following graph:</p>
<p><img title="Player Count" src="http://chart.apis.google.com/chart?chxl=0:|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|1&amp;chxt=x,y&amp;chco=1e60cc&amp;chg=10,15,1,0&amp;chd=s:HJKLNPPQRTTUWVWXVXYaZbcbcedeghefhfhifhjkhjlhklomopmoqmopsorsehkjlnqrtqsumqstqtvgjliknqnprprsprtwsuwruwruvxtvxrtvsuwrtvyuwytvwzuwytvxtvyuwz1vy0wz1wz130250357135z13y03x025z13z23x024bfijlnloqsorx0&amp;chtt=Player+Count&amp;cht=lc&amp;chs=575x300&amp;chxr=1,85,700" alt="Google Chart" width="575" height="300" /></p>
<p>This release works great with Ruby 1.9 and <a title="MacRuby" href="http://macruby.org" target="_blank">MacRuby</a>, lots of bugs got fixed and some new features were added. Something a lot of people complained was that the gem was called googlecharts but that the main class was called Gchart. The problem was that I wrote my gem and called it Gchart and when I went to register the rubyforge project page, the name was already taken. In this release, I fixed this problem by allowing users to require and use the constant name they want, Gchart or Googlecharts. I also spent quite a lot of time cleaning up the old code which I was a bit ashamed of. Class variables are now removed and overall, the code should be a bit more sane.</p>
<p>The source code can be found in my <a href="http://github.com/mattetti/googlecharts/" target="_blank">GitHub accout</a> and the documentation <a href="http://mattetti.github.com/googlecharts/" target="_blank">there</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2010/02/03/googlecharts-1-5-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Googlecharts featured on Github</title>
		<link>http://railsontherun.com/2008/06/27/googlecharts-featured-on-github/</link>
		<comments>http://railsontherun.com/2008/06/27/googlecharts-featured-on-github/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 07:06:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Gems & Libs]]></category>
		<category><![CDATA[googlecharts]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2008/06/27/googlecharts-featured-on-github</guid>
		<description><![CDATA[Github, probably the most famous social code hosting service just redesigned their homepage and are now featuring hosted projects. I got a very good surprise when Takeo from Powerset &#38; Stafftool hall of fame mentioned to me that Github picked one of my gems as the first featured project! By the way, Takeo is also [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com">Github</a>, probably the most famous social code hosting service just <a href="http://github.com/blog/103-new-homepage">redesigned their homepage</a> and are now featuring hosted projects.</p>
<p>I got a very good surprise when <a href="http://github.com/takeo">Takeo</a> from <a href="http://powerset.com">Powerset</a> &amp; <a href="http://stafftool.com">Stafftool</a> hall of fame mentioned to me that <a href="http://github.com">Github</a> picked one of my gems as the first featured project!</p>
<p><img src="http://img.skitch.com/20080627-r14subqdx2ye3w13qefbx974gc.png" alt="github"/></p>
<p>By the way, Takeo is also a Googlecharts contributor (+ a Merbist) and I had the honor to be the first one he ever forked!</p>
<p>Another Googlecharts user, <a href="http://graffletopia.com">Mokolabs</a> from Graffletopia and <a href="http://icalshare.com/">iCal Share</a> also decided to try Git and Github. In no time he had forked my project, made some modifications and sent me a pull request. w00t w00t!</p>
<p>To celebrate, we released version 1.3.4 with cleaner documentation, and enhanced features.</p>
<p><a href="http://googlecharts.rubyforge.org/">Documentation</a> &amp; <a href="http://github.com/mattetti/googlecharts">Code Repo</a></p>
<p>Thanks to everyone involved in this project. And special kudos to the <a href="http://github.com">GitHub</a> team for offering such an awesome service!</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2008/06/27/googlecharts-featured-on-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Googlecharts 0.1.0 released with new site</title>
		<link>http://railsontherun.com/2007/12/12/googlecharts-0-1-0-released-with-new-site/</link>
		<comments>http://railsontherun.com/2007/12/12/googlecharts-0-1-0-released-with-new-site/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 08:02:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Gems & Libs]]></category>
		<category><![CDATA[googlecharts]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[googlechart]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/12/12/googlecharts-0-1-0-released-with-new-site</guid>
		<description><![CDATA[I just released Googlecharts 0.1.0 (few bug fixes and enhancements). The first thing you want to do is to install the gem sudo gem install googlecharts The second thing you want to do is check the great brand new website for googlecharts The third thing you want to do is to recommend me on Working [...]]]></description>
			<content:encoded><![CDATA[<p>I just released Googlecharts 0.1.0 (few bug fixes and enhancements).</p>
<ul>
<li>The first thing you want to do is to install the gem</li>
</ul>
<pre class='brush:bash'>
sudo gem install googlecharts
</pre>
<ul>
<li>The second thing you want to do is check <a href="http://googlecharts.rubyforge.org/">the great brand new website</a> for <a href="http://googlecharts.rubyforge.org/">googlecharts</a></li>
</ul>
<p><img src="http://content.screencast.com/media/40c8b83c-06e5-4d07-89d5-8f05ae37e3a9_74569570-772f-4886-b2ea-f305d1ede3aa_static_0_0_00000037.png" alt="website"/></p>
<ul>
<li>
<p>The third thing you want to do is to <a href="http://www.workingwithrails.com/recommendation/new/person/6065-matt-aimonetti">recommend me on Working with Rails</a> <img src='http://railsontherun.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</li>
<li>
<p>The fourth thing you want to do is to submit patches, suggestions etc&#8230;</p>
</li>
<li>
<p>The fifth thing you want to do is to develop an awesome website using sexy googlecharts</p>
</li>
</ul>
<p>This gem and its website have been made possible by <a href="http://drnicwilliams.com/">DrNic</a> and his awesome <a href="http://newgem.rubyforge.org/">new gem generator</a> and has been developed following the BDD approach thanks to <a href="http://rspec.rubyforge.org">RSpec</a> <img src='http://railsontherun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/12/12/googlecharts-0-1-0-released-with-new-site/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google Chart Gem</title>
		<link>http://railsontherun.com/2007/12/10/google-chart-gem/</link>
		<comments>http://railsontherun.com/2007/12/10/google-chart-gem/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 06:43:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Gems & Libs]]></category>
		<category><![CDATA[googlecharts]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[gchart]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[sexy charts]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/12/12/google-chart-gem</guid>
		<description><![CDATA[update Nov 11: the gem is finally available there or simply: sudo gem install googlecharts Note that I&#8217;m working on merging this gem with another Google Charts gem. (see comments for more info about that) I&#8217;ve been working on a Google Chart Gem that I have ready for a beta release but unfortunately, getting a [...]]]></description>
			<content:encoded><![CDATA[<h2>update Nov 11: the gem is finally available <a href="http://rubyforge.org/projects/googlecharts/">there</a> or simply:</h2>
<pre class="brush:bash">
  sudo gem install googlecharts
</pre>
<p>Note that I&#8217;m working on merging this gem with another Google Charts gem. (see comments for more info about that)</p>
<p><img src="http://chart.apis.google.com/chart?chtt=Rails+on+the+run&amp;cht=p3&amp;chs=200x90&amp;chd=s:Hellobla&amp;chl=May|Jun|Jul|Aug|Sep|Oct&amp;chco=0000ff" alt="gchart"/></p>
<p>I&#8217;ve been working on a Google Chart Gem that I have ready for a beta release but unfortunately, getting a new project setup on RubyForge takes forever. (apparently 72 hours)</p>
<p>It&#8217;s mainly a wrapper for the great GChart API, but instead of using a helper to generate your graphs, you can simply do:</p>
<pre class="brush:ruby">
  Gchart.bar(:title => 'My Mojo', :data => [1,2,4,67,100,41,234], :max_value => 300, :bg => 'c3c3c3')

  Gchart.line(:title => 'My Mojo',
              :data => [[1,2,4,67,100,41,234],[41,63,96,17,100,14,423]],
              :bg => '666666',
              :graph_bg => 'cccccc',
              :line_colors => 'ff0000,00ff00',
              :legend => ['morning','evening'])
</pre>
<pre class="brush:ruby">
  Gchart.pie(:data => [20,10,15,5,50], :title => 'SDRuby fu', :size => '400x200', :labels => ['matt', 'rob', 'patrick', 'jordan', 'ryan'])
</pre>
<p><img src="http://chart.apis.google.com/chart?chs=400x200&amp;chd=s:YMSG9&amp;chtt=SDRuby+fu&amp;chl=matt|rob|patrick|jordan|ryan&amp;cht=p" alt="img"/></p>
<p>As far as I know this is most complete Ruby wrapper for Google Chart API, but feel free to look around.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/12/10/google-chart-gem/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

