website/index.txt in googlecharts-1.2.0 vs website/index.txt in googlecharts-1.3.0
- old
+ new
@@ -13,10 +13,12 @@
If you never added "GitHub":http://github.com as a gem source, you will need to do the following:
<pre syntax="ruby">$ gem sources -a http://gems.github.com/</pre> (you only need to do this once)
<pre syntax="ruby">$ sudo gem install matta-googlecharts</pre>
+or <pre syntax="ruby">$ sudo gem install googlecharts</pre>
+
h2. The basics
This gem supports the following types of charts:
!http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:helloWorld&chxt=x,y&chxl=0:|Mar|Apr|May|June|July|1:||50+Kb(Line)! Gchart.line()
@@ -33,16 +35,22 @@
!http://chart.apis.google.com/chart?cht=p3&chd=s:Uf9a&chs=200x100&chl=A|B|C|D(pie_3d)! Gchart.pie_3d()
!http://chart.apis.google.com/chart?chs=100x20&cht=ls&chco=0077CC&chm=B,E6F2FA,0,0,0&chls=1,0,0&chd=t:27,25,25,25,25,27,100,31,25,36,25,25,39,25,31,25,25,25,26,26,25,25,28,25,25,100,28,27,31,25,27,27,29,25,27,26,26,25,26,26,35,33,34,25,26,25,36,25,26,37,33,33,37,37,39,25,25,25,25(sparkline)!Gchart.sparkline()
+!http://chart.apis.google.com/chart?chs=225x125&cht=gom&chd=t:70&chl=Flavor(google-o-meter)! Gchart.meter()
h2. Demonstration of usage
install:
+
<code>sudo gem install matta-googlecharts</code>
+or use rubyforge:
+
+<code>sudo gem install googlecharts</code>
+
require:
<pre syntax="ruby">require 'gchart'</pre>
<pre syntax="ruby">Gchart.line( :size => '200x300',
:title => "example title",
@@ -178,10 +186,20 @@
Gchart.scatter(:data => [[1, 2, 3, 4, 5], [1, 2, 3, 4 ,5], [5, 4, 3, 2, 1]])
</pre>
!http://chart.apis.google.com/chart?cht=s&chs=300x200&chd=s:MYkw9,MYkw9,9wkYM(scatter)!
+*google-o-meter*
+
+"Google Documentation":http://code.google.com/apis/chart/#gom
+
+Supply a single label that will be what the arrow points to. It only supports a solid fill for the background.
+
+<pre syntax="ruby">
+ Gchart.meter(:data => [70], :label => ['Flavor'])
+</pre>
+
---
*set a chart title*
<pre syntax="ruby">
@@ -430,5 +448,8 @@
h2. Contact
Comments are welcome. Send an email to "Matt Aimonetti":mailto:mattaimonetti@gmail.com
+h3. Contributors
+
+"David Grandinetti":http://github.com/dbgrandi