rbgct 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ module Rbgct::Charts
6
6
  DEFAULT_HEIGHT = 400
7
7
 
8
8
  attr_accessor :data, :type, :class_name, :render_warning
9
- attr_accessor :width, :height, :dom_id, :title, :h_title, :v_title, :top, :left, :legend, :x_strftime, :y_strftime, :time_offset
9
+ attr_accessor :width, :height, :dom_id, :title, :h_title, :v_title, :top, :left, :legend, :x_strftime, :y_strftime, :time_offset, :bg_color, :bg_stroke, :bg_stroke_color
10
10
 
11
11
  def render
12
12
  if data.empty?
@@ -44,7 +44,7 @@ module Rbgct::Charts
44
44
 
45
45
  // Create and draw the visualization.
46
46
  new google.visualization.#{class_name}(document.getElementById('#{dom_id}')).
47
- draw(data, {width: #{width}, height: #{height}, title: "#{title}", chartArea: {top: #{top}, left: #{left}} #{options_for_chart}});
47
+ draw(data, {width: #{width}, height: #{height}, backgroundColor:{stroke:'#{bg_stroke_color}', strokeWidth:#{bg_stroke}, fill:'#{bg_color}'}, title: "#{title}", chartArea: {top: #{top}, left: #{left}} #{options_for_chart}});
48
48
  }
49
49
 
50
50
  google.setOnLoadCallback(drawVisualization);
@@ -70,6 +70,8 @@ module Rbgct::Charts
70
70
  @top ||= 100
71
71
  @left ||= 100
72
72
  @class_name ||= self.class.name.sub('Rbgct::Charts::','')
73
+ @bg_stroke_color ||= '#ffffff'
74
+ @bg_stroke ||= 0
73
75
  end
74
76
 
75
77
  end
data/lib/rbgct/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbgct
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,28 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbgct
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Emanuele Tozzato
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-02 00:00:00 Z
12
+ date: 2011-10-21 00:00:00.000000000 -07:00
13
+ default_executable:
14
14
  dependencies: []
15
-
16
- description: "Google Chart Tools provide a perfect way to visualize data on your website: now on Ruby"
17
- email:
15
+ description: ! 'Google Chart Tools provide a perfect way to visualize data on your
16
+ website: now on Ruby'
17
+ email:
18
18
  - etozzato@gmail.com
19
19
  executables: []
20
-
21
20
  extensions: []
22
-
23
21
  extra_rdoc_files: []
24
-
25
- files:
22
+ files:
26
23
  - .gitignore
27
24
  - Gemfile
28
25
  - LICENSE
@@ -37,32 +34,29 @@ files:
37
34
  - lib/rbgct/charts/pie_chart.rb
38
35
  - lib/rbgct/version.rb
39
36
  - rbgct.gemspec
37
+ has_rdoc: true
40
38
  homepage: http://www.mekdigital.com
41
39
  licenses: []
42
-
43
40
  post_install_message:
44
41
  rdoc_options: []
45
-
46
- require_paths:
42
+ require_paths:
47
43
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
49
45
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
51
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
60
56
  requirements: []
61
-
62
57
  rubyforge_project: rbgct
63
- rubygems_version: 1.7.2
58
+ rubygems_version: 1.5.2
64
59
  signing_key:
65
60
  specification_version: 3
66
61
  summary: Ruby Google Chart Tools
67
62
  test_files: []
68
-