gchartrb 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -1
  2. data/Rakefile +5 -1
  3. data/lib/google_chart/base.rb +16 -0
  4. metadata +3 -11
data/History.txt CHANGED
@@ -1,5 +1,9 @@
1
+ == 0.2 / 2007-12-11
2
+
3
+ * Removed hoe dependency
4
+ * Doc fixes
5
+
1
6
  == 0.1 / 2007-12-11
2
7
 
3
8
  * Initial Release
4
9
  * RDoc documentation
5
-
data/Rakefile CHANGED
@@ -4,7 +4,11 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
  require './lib/google_chart.rb'
6
6
 
7
- Hoe.new('gchartrb', "0.1.0") do |p|
7
+ class Hoe
8
+ def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
9
+ end # copied from the Rakefile of the sup project
10
+
11
+ Hoe.new('gchartrb', "0.2.0") do |p|
8
12
  p.rubyforge_name = 'gchartrb'
9
13
  p.author = 'Deepak Jois'
10
14
  p.email = 'deepak.jois@gmail.com'
@@ -78,6 +78,22 @@ module GoogleChart
78
78
  @colors << color if color
79
79
  end
80
80
 
81
+ # Adds a background or chart fill. Call this option twice if you want both a background and a chart fill
82
+ # [+bg_or_c+] Can be one of <tt>:background</tt> or <tt>:chart</tt> depending on the kind of fill requested
83
+ # [+type+] Can be one of <tt>:solid</tt>, <tt>:gradient</tt> or <tt>:stripes</tt>
84
+ # [+options+] : Options depend on the type of fill selected above
85
+ #
86
+ # ==== Options
87
+ # For <tt>:solid</tt> type
88
+ # * A <tt>:color</tt> option which specifies the RGB hex value of the color to be used as a fill. For e.g <tt>lc.fill(:chart, :solid, {:color => 'ffcccc'})</tt>
89
+ #
90
+ # For <tt>:gradient</tt> type
91
+ # * An <tt>:angle</p>, which is the angle of the gradient between 0(horizontal) and 90(vertical)
92
+ # * A <tt>:color</tt> option which is a 2D array containing the colors and an offset each, which specifies at what point the color is pure where: 0 specifies the right-most chart position and 1 the left-most. e,g <tt>lc.fill :background, :gradient, :angle => 0, :color => [['76A4FB',1],['ffffff',0]]</tt>
93
+ #
94
+ # For <tt>:stripes</tt> type
95
+ # * An <tt>:angle</p>, which is the angle of the stripe between 0(horizontal) and 90(vertical)
96
+ # * A <tt>:color</tt> option which is a 2D array containing the colors and width value each, which must be between 0 and 1 where 1 is the full width of the chart. for e.g <tt>lc.fill :chart, :stripes, :angle => 90, :color => [ ['76A4FB',0.2], ['ffffff',0.2] ]</tt>
81
97
  def fill(bg_or_c, type, options = {})
82
98
  case bg_or_c
83
99
  when :background
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: gchartrb
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
6
+ version: 0.2.0
7
7
  date: 2007-12-11 00:00:00 +08:00
8
8
  summary: Ruby Wrapper for the Google Chart API
9
9
  require_paths:
@@ -57,13 +57,5 @@ extensions: []
57
57
 
58
58
  requirements: []
59
59
 
60
- dependencies:
61
- - !ruby/object:Gem::Dependency
62
- name: hoe
63
- version_requirement:
64
- version_requirements: !ruby/object:Gem::Version::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 1.3.0
69
- version:
60
+ dependencies: []
61
+