google_visualr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ module GoogleVisualr
2
+
3
+ # http://code.google.com/apis/visualization/documentation/gallery/motionchart.html
4
+ class MotionChart < BaseChart
5
+
6
+ attr_accessor :element_id
7
+
8
+ # http://code.google.com/apis/visualization/documentation/gallery/motionchart.html#Configuration_Options
9
+ attr_accessor :height
10
+ attr_accessor :width
11
+ attr_accessor :state
12
+ attr_accessor :showChartButtons
13
+ attr_accessor :showHeader
14
+ attr_accessor :showSelectListComponent
15
+ attr_accessor :showSidePanel
16
+ attr_accessor :showXMetricPicker
17
+ attr_accessor :showYMetricPicker
18
+ attr_accessor :showXScalePicker
19
+ attr_accessor :showYScalePicker
20
+ attr_accessor :showAdvancedPanel
21
+
22
+ def render (element_id)
23
+
24
+ options = Hash.new
25
+
26
+ options[:package] = self.class.to_s.split('::').last
27
+ options[:element_id] = element_id
28
+ options[:chart_style] = collect_parameters
29
+
30
+ super(options)
31
+
32
+ end
33
+
34
+ end
35
+
36
+ end
data/lib/org_chart.rb ADDED
@@ -0,0 +1,29 @@
1
+ module GoogleVisualr
2
+
3
+ # http://code.google.com/apis/visualization/documentation/gallery/orgchart.html
4
+ class OrgChart < BaseChart
5
+
6
+ attr_accessor :element_id
7
+
8
+ # http://code.google.com/apis/visualization/documentation/gallery/orgchart.html#Configuration_Options
9
+ attr_accessor :allowCollapse
10
+ attr_accessor :allowHtml
11
+ attr_accessor :nodeClass
12
+ attr_accessor :selectedNodeClass
13
+ attr_accessor :size
14
+
15
+ def render (element_id)
16
+
17
+ options = Hash.new
18
+
19
+ options[:package] = self.class.to_s.split('::').last
20
+ options[:element_id] = element_id
21
+ options[:chart_style] = collect_parameters
22
+
23
+ super(options)
24
+
25
+ end
26
+
27
+ end
28
+
29
+ end
data/lib/pie_chart.rb ADDED
@@ -0,0 +1,44 @@
1
+ module GoogleVisualr
2
+
3
+ # http://code.google.com/apis/visualization/documentation/gallery/piechart.html
4
+ class PieChart < BaseChart
5
+
6
+ attr_accessor :element_id
7
+
8
+ # http://code.google.com/apis/visualization/documentation/gallery/piechart.html#Configuration_Options
9
+ attr_accessor :backgroundColor
10
+ attr_accessor :borderColor
11
+ attr_accessor :colors
12
+ attr_accessor :enableTooltip
13
+ attr_accessor :focusBorderColor
14
+ attr_accessor :height
15
+ attr_accessor :is3D
16
+ attr_accessor :legend
17
+ attr_accessor :legendBackgroundColor
18
+ attr_accessor :legendFontSize
19
+ attr_accessor :legendTextColor
20
+ attr_accessor :pieJoinAngle
21
+ attr_accessor :pieMinimalAngle
22
+ attr_accessor :title
23
+ attr_accessor :titleColor
24
+ attr_accessor :titleFontSize
25
+ attr_accessor :tooltipFontSize
26
+ attr_accessor :tooltipHeight
27
+ attr_accessor :tooltipWidth
28
+ attr_accessor :width
29
+
30
+ def render (element_id)
31
+
32
+ options = Hash.new
33
+
34
+ options[:package] = self.class.to_s.split('::').last
35
+ options[:element_id] = element_id
36
+ options[:chart_style] = collect_parameters
37
+
38
+ super(options)
39
+
40
+ end
41
+
42
+ end
43
+
44
+ end
@@ -0,0 +1,52 @@
1
+ module GoogleVisualr
2
+
3
+ # http://code.google.com/apis/visualization/documentation/gallery/scatterchart.html
4
+ class ScatterChart < BaseChart
5
+
6
+ attr_accessor :element_id
7
+
8
+ # http://code.google.com/apis/visualization/documentation/gallery/scatterchart.html#Configuration_Options
9
+ attr_accessor :axisColor
10
+ attr_accessor :axisBackgroundColor
11
+ attr_accessor :axisFontSize
12
+ attr_accessor :backgroundColor
13
+ attr_accessor :borderColor
14
+ attr_accessor :colors
15
+ attr_accessor :enableTooltip
16
+ attr_accessor :focusBorderColor
17
+ attr_accessor :height
18
+ attr_accessor :legend
19
+ attr_accessor :legendBackgroundColor
20
+ attr_accessor :legendFontSize
21
+ attr_accessor :legendTextColor
22
+ attr_accessor :lineSize
23
+ attr_accessor :logScale
24
+ attr_accessor :logScaleX
25
+ attr_accessor :max
26
+ attr_accessor :min
27
+ attr_accessor :pointSize
28
+ attr_accessor :title
29
+ attr_accessor :titleX
30
+ attr_accessor :titleY
31
+ attr_accessor :titleColor
32
+ attr_accessor :titleFontSize
33
+ attr_accessor :tooltipFontSize
34
+ attr_accessor :tooltipHeight
35
+ attr_accessor :tooltipWidth
36
+ attr_accessor :width
37
+
38
+ def render (element_id)
39
+
40
+ options = Hash.new
41
+
42
+ options[:package] = self.class.to_s.split('::').last
43
+ options[:element_id] = element_id
44
+ options[:chart_style] = collect_parameters
45
+
46
+ super(options)
47
+
48
+ end
49
+
50
+ end
51
+
52
+ end
data/lib/table.rb ADDED
@@ -0,0 +1,39 @@
1
+ module GoogleVisualr
2
+
3
+ class Table < BaseChart
4
+
5
+ # http://code.google.com/apis/visualization/documentation/gallery/table.html
6
+ attr_accessor :element_id
7
+
8
+ # http://code.google.com/apis/visualization/documentation/gallery/table.html#Configuration_Options
9
+ attr_accessor :allowHtml
10
+ attr_accessor :alternatingRowStyle
11
+ attr_accessor :cssClassNames
12
+ attr_accessor :firstRowNumber
13
+ attr_accessor :height
14
+ attr_accessor :page
15
+ attr_accessor :pageSize
16
+ attr_accessor :rtlTable
17
+ attr_accessor :scrollLeftStartPosition
18
+ attr_accessor :showRowNumber
19
+ attr_accessor :sort
20
+ attr_accessor :sortAscending
21
+ attr_accessor :sortColumn
22
+ attr_accessor :startPage
23
+ attr_accessor :width
24
+
25
+ def render (element_id)
26
+
27
+ options = Hash.new
28
+
29
+ options[:package] = self.class.to_s.split('::').last
30
+ options[:element_id] = element_id
31
+ options[:chart_style] = collect_parameters
32
+
33
+ super(options)
34
+
35
+ end
36
+
37
+ end
38
+
39
+ end
data/uninstall.rb ADDED
@@ -0,0 +1 @@
1
+ # Uninstall Hook
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google_visualr
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Winston Teo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2011-02-06 00:00:00 +08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: winston.yongwei+spam at gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
+ files:
25
+ - CHANGELOG
26
+ - init.rb
27
+ - install.rb
28
+ - MIT-LICENSE
29
+ - Rakefile
30
+ - README.rdoc
31
+ - uninstall.rb
32
+ - VERSION
33
+ - lib/annotated_time_line.rb
34
+ - lib/area_chart.rb
35
+ - lib/bar_chart.rb
36
+ - lib/base_chart.rb
37
+ - lib/column_chart.rb
38
+ - lib/formatters.rb
39
+ - lib/gauge.rb
40
+ - lib/geo_map.rb
41
+ - lib/image_spark_line.rb
42
+ - lib/intensity_map.rb
43
+ - lib/line_chart.rb
44
+ - lib/map.rb
45
+ - lib/motion_chart.rb
46
+ - lib/org_chart.rb
47
+ - lib/pie_chart.rb
48
+ - lib/scatter_chart.rb
49
+ - lib/table.rb
50
+ has_rdoc: true
51
+ homepage: https://github.com/winston/google_visualr
52
+ licenses: []
53
+
54
+ post_install_message:
55
+ rdoc_options: []
56
+
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ requirements: []
72
+
73
+ rubyforge_project:
74
+ rubygems_version: 1.3.5
75
+ signing_key:
76
+ specification_version: 3
77
+ summary: Wrapper around the Google Visualization API.
78
+ test_files: []
79
+