website/index.txt in googlecharts-1.1.0 vs website/index.txt in googlecharts-1.2.0
- old
+ new
@@ -7,12 +7,16 @@
A nice and simple wrapper for "Google Chart API":http://code.google.com/apis/chart/
h2. Installing
-<pre syntax="ruby">sudo gem install googlecharts</pre>
+This project is now hosted at "GitHub":http://github.com
+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>
+
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()
@@ -26,16 +30,18 @@
!http://chart.apis.google.com/chart?cht=v&chs=200x100&chd=t:100,80,60,30,30,30,10(venn)! Gchart.venn()
!http://chart.apis.google.com/chart?cht=p&chd=s:world5&chs=200x125&chl=A|B|C|D|E|Fe(pie)! Gchart.pie()
!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()
h2. Demonstration of usage
install:
-<code>sudo gem install googlecharts</code>
+<code>sudo gem install matta-googlecharts</code>
require:
<pre syntax="ruby">require 'gchart'</pre>
<pre syntax="ruby">Gchart.line( :size => '200x300',
@@ -72,10 +78,21 @@
!http://chart.apis.google.com/chart?cht=lc&chs=300x200&chd=s:AeH1P,fH9m&chco=FF0000,00FF00(line colors)!
"more info about color settings":http://code.google.com/apis/chart/#chart_colors
+*sparkline chart*
+
+<pre syntax="ruby">
+ data = [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]
+ Gchart.sparkline(:data => data, :size => '120x40', :line_colors => '0077CC')
+</pre>
+
+!http://chart.apis.google.com/chart?chd=s:QPPPPQ9SPVPPXPSPPPPPPPRPP9RQSPQQRPQPPPPPVUUPPPVPPWUUWWXPPPP&chco=0077CC&chs=120x40&cht=ls(sparline)!
+
+A sparkline chart has exactly the same parameters as a line chart. The only difference is that the axes lines are not drawn for sparklines by default.
+
*bar chart*
<pre syntax="ruby">
Gchart.bar(:data => [300, 100, 30, 200])
</pre>
@@ -403,10 +420,10 @@
h2. Repository
-The trunk repository is <code>svn://rubyforge.org/var/svn/Gchart/trunk</code> for anonymous access.
+The trunk repository is <code>http://github.com/matta/googlecharts/</code> for anonymous access.
h2. License
This code is free to use under the terms of the MIT license.