GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: GChart exposes the Google Chart API (http://code.google.com/apis/chart) via a friendly Ruby interface. It can generate the URL for a given chart (for webpage use), or download the generated PNG (for offline use).
Homepage: http://gchart.rubyforge.org/
Clone URL: git://github.com/abhay/gchart.git
Added support for Sparkline charts
Initial support for Google-o-meter
Mark Thomas (author)
Wed Apr 23 04:38:14 -0700 2008
commit  97119e24de8e49976f8b0de898ca645d1f2edfb9
tree    7485e79580254718a1be5cc5e796c5309540bd27
parent  a04e5e7c4b593b949a75e7aa8d7f538a576dfbd5
...
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
0
@@ -1,3 +1,9 @@
0
+== 0.5.0 (2008-04-17)
0
+
0
+ * Support for Map charts
0
+ * Support for Sparkline charts
0
+ * Initial support for Google-o-meter
0
+
0
 == UNRELEASED
0
 
0
   * Freeze GChart::VERSION.
...
6
7
8
 
 
9
10
11
 
12
13
14
15
16
17
 
 
18
19
20
 
21
22
23
...
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
0
@@ -6,18 +6,24 @@ lib/gchart.rb
0
 lib/gchart/bar.rb
0
 lib/gchart/base.rb
0
 lib/gchart/line.rb
0
+lib/gchart/map.rb
0
+lib/gchart/meter.rb
0
 lib/gchart/pie.rb
0
 lib/gchart/pie_3d.rb
0
 lib/gchart/scatter.rb
0
+lib/gchart/sparkline.rb
0
 lib/gchart/venn.rb
0
 lib/gchart/xy_line.rb
0
 lib/version.rb
0
 spec/gchart/bar_spec.rb
0
 spec/gchart/base_spec.rb
0
 spec/gchart/line_spec.rb
0
+spec/gchart/map_spec.rb
0
+spec/gchart/meter_spec.rb
0
 spec/gchart/pie_3d_spec.rb
0
 spec/gchart/pie_spec.rb
0
 spec/gchart/scatter_spec.rb
0
+spec/gchart/sparkline_spec.rb
0
 spec/gchart/venn_spec.rb
0
 spec/gchart/xy_line_spec.rb
0
 spec/gchart_spec.rb
...
34
35
36
 
 
 
 
 
 
37
38
39
...
34
35
36
37
38
39
40
41
42
43
44
45
0
@@ -34,6 +34,12 @@ query parameters using the :extras key, e.g.,
0
   
0
   # scatter plot (x coords, y coords [, sizes])
0
   g = GChart.scatter(:data => [[1, 2, 3, 4, 5], [5, 4, 3, 2, 1], [1, 2, 3, 4, 5]])
0
+
0
+ # map chart
0
+ g = GChart.map(:area => 'usa', :data => {'NY'=>1,'VA'=>3,'CA'=>2})
0
+
0
+ # meter
0
+ g = GChart.meter(:data => 70, :label => "70%")
0
   
0
   # chart title
0
   g = GChart.line(:title => "Awesomeness over Time", :data => [0, 10, 100])
...
1
2
3
 
4
5
6
...
23
24
25
 
 
 
26
27
28
29
30
31
 
 
 
32
33
34
...
1
2
 
3
4
5
6
...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
0
@@ -1,6 +1,6 @@
0
 require File.expand_path(File.dirname(__FILE__) + "/version")
0
 
0
-%w(base bar line map pie pie_3d scatter venn xy_line).each do |type|
0
+%w(base bar line map meter pie pie_3d scatter sparkline venn xy_line).each do |type|
0
   require File.expand_path(File.dirname(__FILE__) + "/gchart/#{type}")
0
 end
0
 
0
@@ -23,12 +23,18 @@ module GChart
0
     # Convenience constructor for GChart::Map.
0
     def map(*args, &block); Map.new(*args, &block) end
0
 
0
+ # Convenience constructor for GChart::Meter.
0
+ def meter(*args, &block); Meter.new(*args, &block) end
0
+
0
     # Convenience constructor for GChart::Pie.
0
     def pie(*args, &block); Pie.new(*args, &block) end
0
     
0
     # Convenience constructor for GChart::Pie3D.
0
     def pie3d(*args, &block); Pie3D.new(*args, &block) end
0
     
0
+ # Convenience constructor for GChart::Line.
0
+ def sparkline(*args, &block); Sparkline.new(*args, &block) end
0
+
0
     # Convenience constructor for GChart::Venn.
0
     def venn(*args, &block); Venn.new(*args, &block) end
0
     
...
1
2
 
3
...
1
 
2
3
0
@@ -1,3 +1,3 @@
0
 module GChart
0
- VERSION = "0.4.2".freeze
0
+ VERSION = "0.5.0".freeze
0
 end

Comments

    No one has commented yet.