google_visualr 0.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +25 -0
- data/MIT-LICENSE +15 -14
- data/README.rdoc +59 -48
- data/Rakefile +9 -30
- data/google_visualr.gemspec +24 -0
- data/lib/google_visualr.rb +39 -0
- data/lib/google_visualr/base_chart.rb +40 -0
- data/lib/google_visualr/data_table.rb +277 -0
- data/lib/google_visualr/formatters.rb +78 -0
- data/lib/google_visualr/image/spark_line.rb +13 -0
- data/lib/google_visualr/interactive/annotated_time_line.rb +11 -0
- data/lib/google_visualr/interactive/area_chart.rb +13 -0
- data/lib/google_visualr/interactive/bar_chart.rb +13 -0
- data/lib/google_visualr/interactive/candlestick_chart.rb +13 -0
- data/lib/google_visualr/interactive/column_chart.rb +13 -0
- data/lib/google_visualr/interactive/combo_chart.rb +13 -0
- data/lib/google_visualr/interactive/gauge.rb +11 -0
- data/lib/google_visualr/interactive/geo_chart.rb +11 -0
- data/lib/google_visualr/interactive/intensity_map.rb +11 -0
- data/lib/google_visualr/interactive/line_chart.rb +13 -0
- data/lib/google_visualr/interactive/map.rb +11 -0
- data/lib/google_visualr/interactive/motion_chart.rb +11 -0
- data/lib/google_visualr/interactive/org_chart.rb +11 -0
- data/lib/google_visualr/interactive/pie_chart.rb +13 -0
- data/lib/google_visualr/interactive/scatter_chart.rb +13 -0
- data/lib/google_visualr/interactive/table.rb +11 -0
- data/lib/google_visualr/interactive/treemap.rb +11 -0
- data/lib/google_visualr/packages.rb +30 -0
- data/lib/google_visualr/param_helpers.rb +50 -0
- data/lib/google_visualr/version.rb +3 -0
- data/spec/google_visualr/base_chart_spec.rb +55 -0
- data/spec/google_visualr/data_table_spec.rb +251 -0
- data/spec/google_visualr/formatters_spec.rb +104 -0
- data/spec/spec_helper.rb +8 -0
- data/test/google_visualr_spec.rb +7 -0
- data/test/helper.rb +18 -0
- metadata +73 -36
- data/VERSION +0 -1
- data/init.rb +0 -17
- data/install.rb +0 -1
- data/lib/annotated_time_line.rb +0 -50
- data/lib/area_chart.rb +0 -54
- data/lib/bar_chart.rb +0 -53
- data/lib/base_chart.rb +0 -285
- data/lib/column_chart.rb +0 -53
- data/lib/formatters.rb +0 -184
- data/lib/gauge.rb +0 -36
- data/lib/geo_map.rb +0 -32
- data/lib/image_spark_line.rb +0 -36
- data/lib/intensity_map.rb +0 -29
- data/lib/line_chart.rb +0 -54
- data/lib/map.rb +0 -31
- data/lib/motion_chart.rb +0 -36
- data/lib/org_chart.rb +0 -29
- data/lib/pie_chart.rb +0 -44
- data/lib/scatter_chart.rb +0 -52
- data/lib/table.rb +0 -39
- data/uninstall.rb +0 -1
data/lib/motion_chart.rb
DELETED
@@ -1,36 +0,0 @@
|
|
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
DELETED
@@ -1,29 +0,0 @@
|
|
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
DELETED
@@ -1,44 +0,0 @@
|
|
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
|
data/lib/scatter_chart.rb
DELETED
@@ -1,52 +0,0 @@
|
|
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
DELETED
@@ -1,39 +0,0 @@
|
|
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
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Uninstall Hook
|