daru-view 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +4 -0
  4. data/.rubocop.yml +122 -0
  5. data/.simplecov +3 -0
  6. data/.travis.yml +18 -0
  7. data/CHANGELOG.md +21 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/CONTRIBUTING.md +53 -0
  10. data/Gemfile +11 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +287 -0
  13. data/Rakefile +22 -0
  14. data/_config.yml +1 -0
  15. data/daru-view.gemspec +52 -0
  16. data/lib/assets/.keep +0 -0
  17. data/lib/daru/view.rb +127 -0
  18. data/lib/daru/view/adapters/datatables.rb +90 -0
  19. data/lib/daru/view/adapters/googlecharts.rb +180 -0
  20. data/lib/daru/view/adapters/googlecharts/data_table_iruby.rb +86 -0
  21. data/lib/daru/view/adapters/googlecharts/display.rb +54 -0
  22. data/lib/daru/view/adapters/googlecharts/iruby_notebook.rb +15 -0
  23. data/lib/daru/view/adapters/highcharts.rb +114 -0
  24. data/lib/daru/view/adapters/highcharts/core_ext/string.rb +10 -0
  25. data/lib/daru/view/adapters/highcharts/display.rb +58 -0
  26. data/lib/daru/view/adapters/highcharts/iruby_notebook.rb +29 -0
  27. data/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb +76 -0
  28. data/lib/daru/view/adapters/js/googlecharts_js/google_visualr.js +44 -0
  29. data/lib/daru/view/adapters/js/googlecharts_js/loader.js +226 -0
  30. data/lib/daru/view/adapters/js/highcharts_js/adapters/mootools-adapter.js +13 -0
  31. data/lib/daru/view/adapters/js/highcharts_js/adapters/prototype-adapter.js +15 -0
  32. data/lib/daru/view/adapters/js/highcharts_js/highcharts-3d.js +74 -0
  33. data/lib/daru/view/adapters/js/highcharts_js/highcharts-more.js +64 -0
  34. data/lib/daru/view/adapters/js/highcharts_js/highcharts.js +399 -0
  35. data/lib/daru/view/adapters/js/highcharts_js/highstock.js +519 -0
  36. data/lib/daru/view/adapters/js/highcharts_js/modules/accessibility.js +48 -0
  37. data/lib/daru/view/adapters/js/highcharts_js/modules/annotations.js +14 -0
  38. data/lib/daru/view/adapters/js/highcharts_js/modules/boost.js +51 -0
  39. data/lib/daru/view/adapters/js/highcharts_js/modules/broken-axis.js +15 -0
  40. data/lib/daru/view/adapters/js/highcharts_js/modules/canvas-tools.js +133 -0
  41. data/lib/daru/view/adapters/js/highcharts_js/modules/data.js +26 -0
  42. data/lib/daru/view/adapters/js/highcharts_js/modules/drilldown.js +25 -0
  43. data/lib/daru/view/adapters/js/highcharts_js/modules/exporting.js +27 -0
  44. data/lib/daru/view/adapters/js/highcharts_js/modules/funnel.js +13 -0
  45. data/lib/daru/view/adapters/js/highcharts_js/modules/heatmap.js +25 -0
  46. data/lib/daru/view/adapters/js/highcharts_js/modules/no-data-to-display.js +12 -0
  47. data/lib/daru/view/adapters/js/highcharts_js/modules/offline-exporting.js +19 -0
  48. data/lib/daru/view/adapters/js/highcharts_js/modules/solid-gauge.js +14 -0
  49. data/lib/daru/view/adapters/js/highcharts_js/modules/treemap.js +31 -0
  50. data/lib/daru/view/adapters/js/highcharts_js/stock/adapters/mootools-adapter.js +13 -0
  51. data/lib/daru/view/adapters/js/highcharts_js/stock/adapters/prototype-adapter.js +15 -0
  52. data/lib/daru/view/adapters/js/highcharts_js/stock/highcharts-more.js +64 -0
  53. data/lib/daru/view/adapters/js/highcharts_js/stock/modules/exporting.js +27 -0
  54. data/lib/daru/view/adapters/js/highcharts_js/stock/modules/funnel.js +13 -0
  55. data/lib/daru/view/adapters/js/nyaplot_js/d3-downloadable.js +129 -0
  56. data/lib/daru/view/adapters/js/nyaplot_js/d3.min.js +5 -0
  57. data/lib/daru/view/adapters/js/nyaplot_js/nyaplot.js +5294 -0
  58. data/lib/daru/view/adapters/nyaplot.rb +62 -0
  59. data/lib/daru/view/adapters/nyaplot/display.rb +9 -0
  60. data/lib/daru/view/adapters/nyaplot/iruby_notebook.rb +22 -0
  61. data/lib/daru/view/app/rails/helpers/view_helper.rb +26 -0
  62. data/lib/daru/view/app/rails/railtie.rb +15 -0
  63. data/lib/daru/view/plot.rb +106 -0
  64. data/lib/daru/view/table.rb +99 -0
  65. data/lib/daru/view/templates/googlecharts/chart_div.erb +4 -0
  66. data/lib/daru/view/templates/googlecharts/init.inline.js.erb +16 -0
  67. data/lib/daru/view/templates/highcharts/init.inline.js.erb +16 -0
  68. data/lib/daru/view/templates/highcharts/static_html.erb +7 -0
  69. data/lib/daru/view/templates/nyaplot/init.inline.js.erb +16 -0
  70. data/lib/daru/view/templates/nyaplot/init_script.erb +3 -0
  71. data/lib/daru/view/version.rb +5 -0
  72. data/lib/tasks/.keep +0 -0
  73. data/lib/tasks/google_charts.rake +25 -0
  74. data/lib/tasks/high_charts.rake +60 -0
  75. data/lib/tasks/nyaplot.rake +25 -0
  76. data/spec/adapters/datatables_spec.rb +21 -0
  77. data/spec/adapters/googlecharts_spec.rb +34 -0
  78. data/spec/adapters/highcharts_spec.rb +177 -0
  79. data/spec/adapters/nyaplot_spec.rb +447 -0
  80. data/spec/app/rails/helpers/view_helpers_spec.rb +35 -0
  81. data/spec/dummy_iruby/.ipynb_checkpoints/Daru DataFrame and DataTables-checkpoint.ipynb +16091 -0
  82. data/spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb +6 -0
  83. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Line Chart-checkpoint.ipynb +1389 -0
  84. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb +606 -0
  85. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb +1404 -0
  86. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb +866 -0
  87. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb +607 -0
  88. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb +478 -0
  89. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb +1182 -0
  90. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb +6 -0
  91. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb +6 -0
  92. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb +699 -0
  93. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb +1523 -0
  94. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb +650 -0
  95. data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb +477 -0
  96. data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb +1881 -0
  97. data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb +6 -0
  98. data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb +791 -0
  99. data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb +1570 -0
  100. data/spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb +1792 -0
  101. data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Area chart-checkpoint.ipynb +1272 -0
  102. data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Bar Chart-checkpoint.ipynb +877 -0
  103. data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - column charts-checkpoint.ipynb +1587 -0
  104. data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts- Pie charts-checkpoint.ipynb +1126 -0
  105. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Combinations -checkpoint.ipynb +925 -0
  106. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Daynamic charts-checkpoint.ipynb +839 -0
  107. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs-checkpoint.ipynb +1297 -0
  108. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs2-checkpoint.ipynb +879 -0
  109. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - scatter -bubble charts-checkpoint.ipynb +1071 -0
  110. data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts examples-checkpoint.ipynb +1165 -0
  111. data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb +1383 -0
  112. data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot other examples-checkpoint.ipynb +6 -0
  113. data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot testing -checkpoint.ipynb +270 -0
  114. data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame | from daru examples-checkpoint.ipynb +1716 -0
  115. data/spec/dummy_iruby/.ipynb_checkpoints/Pie Chart using HighCharts2-checkpoint.ipynb +784 -0
  116. data/spec/dummy_iruby/.ipynb_checkpoints/highcharts - Use HTML table (generated from daru) as data source-checkpoint.ipynb +956 -0
  117. data/spec/dummy_iruby/.ipynb_checkpoints/spec_testing-checkpoint.ipynb +1433 -0
  118. data/spec/dummy_iruby/Daru DataFrame and DataTables.ipynb +16091 -0
  119. data/spec/dummy_iruby/DataTables | basic examples.ipynb +15587 -0
  120. data/spec/dummy_iruby/Gemfile +33 -0
  121. data/spec/dummy_iruby/Google Chart | Line Chart.ipynb +1389 -0
  122. data/spec/dummy_iruby/Google Chart | Area Chart.ipynb +606 -0
  123. data/spec/dummy_iruby/Google Chart | Bar Chart.ipynb +1394 -0
  124. data/spec/dummy_iruby/Google Chart | Bubble Chart.ipynb +866 -0
  125. data/spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb +607 -0
  126. data/spec/dummy_iruby/Google Chart | Combo Chart.ipynb +478 -0
  127. data/spec/dummy_iruby/Google Chart | Histogram.ipynb +1182 -0
  128. data/spec/dummy_iruby/Google Chart | Org Chart.ipynb +474 -0
  129. data/spec/dummy_iruby/Google Chart | Pie Chart.ipynb +1177 -0
  130. data/spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb +699 -0
  131. data/spec/dummy_iruby/Google Chart | Timeline.ipynb +1523 -0
  132. data/spec/dummy_iruby/Google Chart | Treemap.ipynb +659 -0
  133. data/spec/dummy_iruby/Google Chart | gauge.ipynb +477 -0
  134. data/spec/dummy_iruby/Google Charts | Basics.ipynb +1882 -0
  135. data/spec/dummy_iruby/Google Charts | Column Charts.ipynb +1138 -0
  136. data/spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb +791 -0
  137. data/spec/dummy_iruby/Google Charts | Scatter Chart.ipynb +1570 -0
  138. data/spec/dummy_iruby/GoolgeChart | Datatables.ipynb +1801 -0
  139. data/spec/dummy_iruby/HighCharts - Area chart.ipynb +1272 -0
  140. data/spec/dummy_iruby/HighCharts - Bar Chart.ipynb +877 -0
  141. data/spec/dummy_iruby/HighCharts - column charts.ipynb +1587 -0
  142. data/spec/dummy_iruby/HighCharts- Pie charts.ipynb +1197 -0
  143. data/spec/dummy_iruby/Highcharts - Combinations .ipynb +925 -0
  144. data/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb +839 -0
  145. data/spec/dummy_iruby/Highcharts - line graphs.ipynb +1297 -0
  146. data/spec/dummy_iruby/Highcharts - line graphs2.ipynb +879 -0
  147. data/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb +1071 -0
  148. data/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb +1228 -0
  149. data/spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb +1390 -0
  150. data/spec/dummy_iruby/Nyaplot other examples.ipynb +589 -0
  151. data/spec/dummy_iruby/Nyaplot testing .ipynb +270 -0
  152. data/spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame | from daru examples.ipynb +1716 -0
  153. data/spec/dummy_iruby/Pie Chart using HighCharts2.ipynb +784 -0
  154. data/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb +951 -0
  155. data/spec/dummy_iruby/spec_testing.ipynb +1433 -0
  156. data/spec/dummy_nanoc/Gemfile +12 -0
  157. data/spec/dummy_nanoc/README.md +40 -0
  158. data/spec/dummy_nanoc/Rules +90 -0
  159. data/spec/dummy_nanoc/content/googlecharts/index.html +29 -0
  160. data/spec/dummy_nanoc/content/highcharts/index.html +42 -0
  161. data/spec/dummy_nanoc/content/index.html +26 -0
  162. data/spec/dummy_nanoc/content/nyaplot/index.html +9 -0
  163. data/spec/dummy_nanoc/content/stylesheet.css +101 -0
  164. data/spec/dummy_nanoc/layouts/default.html +31 -0
  165. data/spec/dummy_nanoc/layouts/googlecharts_layout.html +30 -0
  166. data/spec/dummy_nanoc/layouts/highcharts_layout.html +30 -0
  167. data/spec/dummy_nanoc/layouts/nyaplot_layout.html +30 -0
  168. data/spec/dummy_nanoc/lib/default.rb +300 -0
  169. data/spec/dummy_nanoc/nanoc.yaml +90 -0
  170. data/spec/dummy_nanoc/output/googlecharts/index.html +390 -0
  171. data/spec/dummy_nanoc/output/highcharts/index.html +1153 -0
  172. data/spec/dummy_nanoc/output/index.html +87 -0
  173. data/spec/dummy_nanoc/output/nyaplot/index.html +135 -0
  174. data/spec/dummy_nanoc/output/stylesheet.css +101 -0
  175. data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/checksums +0 -0
  176. data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/compiled_content +2229 -0
  177. data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/dependencies +5 -0
  178. data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/outdatedness +0 -0
  179. data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/rule_memory +0 -0
  180. data/spec/dummy_sinatra/Gemfile +9 -0
  181. data/spec/dummy_sinatra/README.md +15 -0
  182. data/spec/dummy_sinatra/app.rb +143 -0
  183. data/spec/dummy_sinatra/config.ru +0 -0
  184. data/spec/dummy_sinatra/views/googlecharts.erb +31 -0
  185. data/spec/dummy_sinatra/views/googlecharts_layout.erb +12 -0
  186. data/spec/dummy_sinatra/views/highcharts.erb +15 -0
  187. data/spec/dummy_sinatra/views/highcharts_layout.erb +12 -0
  188. data/spec/dummy_sinatra/views/index.erb +2 -0
  189. data/spec/dummy_sinatra/views/layout.erb +26 -0
  190. data/spec/dummy_sinatra/views/nyaplot.erb +13 -0
  191. data/spec/dummy_sinatra/views/nyaplot_layout.erb +14 -0
  192. data/spec/plot_spec.rb +86 -0
  193. data/spec/spec_helper.rb +11 -0
  194. metadata +568 -0
@@ -0,0 +1,5 @@
1
+ {: data{:
2
+ edges[ [i i{ :raw_contentT:attributesF:compiled_contentF: pathF[i i{ ;T;F; F;
3
+ F[i
4
+ F[ii { ;T;F; F;
5
+ F:
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ # daru is not added in gemspec
4
+ gem "daru", git: 'https://github.com/SciRuby/daru.git'
5
+ gem 'nyaplot', git: 'https://github.com/sciruby/nyaplot.git'
6
+
7
+ gemspec :path => '../../'
8
+
9
+ gem "sinatra"
@@ -0,0 +1,15 @@
1
+ Sinatra daru-view example
2
+ ==============================
3
+
4
+ A sample app to see the daru-view examples
5
+
6
+
7
+ ## USAGE:
8
+
9
+ bundle
10
+ bundle exec ruby app.rb
11
+
12
+ Now go to :
13
+
14
+ http://localhost:4567/highcharts
15
+ http://localhost:4567/nyaplot
@@ -0,0 +1,143 @@
1
+ require 'sinatra'
2
+ require 'daru/view'
3
+
4
+
5
+ get '/' do
6
+ erb :index , :layout => :layout
7
+ end
8
+
9
+ get '/nyaplot' do
10
+ nyaplot_example()
11
+ erb :nyaplot, :layout => :nyaplot_layout
12
+ end
13
+
14
+ get '/highcharts' do
15
+ highchart_example
16
+ erb :highcharts, :layout => :highcharts_layout
17
+ end
18
+
19
+ get '/googlecharts' do
20
+ googlecharts_example
21
+ erb :googlecharts, :layout => :googlecharts_layout
22
+ end
23
+
24
+ def highchart_example
25
+ # bar chart
26
+ opts = {
27
+ chart: {
28
+ type: 'bar',
29
+ },
30
+ title: {
31
+ text: 'Historic World Population by Region'
32
+ },
33
+ subtitle: {
34
+ text: 'Source: <a href="https://en.wikipedia.org/wiki/World_population">Wikipedia.org</a>'
35
+ },
36
+ xAxis: {
37
+ categories: ['Africa', 'America', 'Asia', 'Europe', 'Oceania'],
38
+ title: {
39
+ text: nil
40
+ }
41
+ },
42
+ yAxis: {
43
+ min: 0,
44
+ title: {
45
+ text: 'Population (millions)',
46
+ align: 'high'
47
+ },
48
+ labels: {
49
+ overflow: 'justify'
50
+ }
51
+ },
52
+ tooltip: {
53
+ valueSuffix: ' millions'
54
+ },
55
+ plotOptions: {
56
+ bar: {
57
+ dataLabels: {
58
+ enabled: true
59
+ }
60
+ }
61
+ },
62
+ legend: {
63
+ layout: 'vertical',
64
+ align: 'right',
65
+ verticalAlign: 'top',
66
+ x: -40,
67
+ y: 80,
68
+ floating: true,
69
+ borderWidth: 1,
70
+ backgroundColor: '#FFFFFF',
71
+ shadow: true
72
+ },
73
+ credits: {
74
+ enabled: false
75
+ },
76
+ adapter: :highcharts
77
+ }
78
+
79
+ series_dt = [
80
+ {
81
+ name: 'Year 1800',
82
+ data: [107, 31, 635, 203, 2]
83
+ }, {
84
+ name: 'Year 1900',
85
+ data: [133, 156, 947, 408, 6]
86
+ }, {
87
+ name: 'Year 2012',
88
+ data: [1052, 954, 4250, 740, 38]
89
+ }
90
+ ]
91
+ @bar_basic = Daru::View::Plot.new([], opts)
92
+ @bar_basic.add_series(series_dt[0])
93
+ @bar_basic.add_series(series_dt[1])
94
+ @bar_basic.add_series(series_dt[2])
95
+
96
+ # @line_graph = Daru::View::Plot.new(data= make_random_series(3), adapter: :highcharts, name: 'spline1', type: 'spline', title: 'Irregular spline')
97
+ end
98
+
99
+
100
+ def nyaplot_example
101
+ dv = Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category
102
+ # default adapter is nyaplot only
103
+ @bar_graph = Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot)
104
+
105
+ df = Daru::DataFrame.new({b: [11,12,13,14,15], a: [1,2,3,4,5],
106
+ c: [11,22,33,44,55]},
107
+ order: [:a, :b, :c],
108
+ index: [:one, :two, :three, :four, :five])
109
+ @scatter_graph = Daru::View::Plot.new df, type: :scatter, x: :a, y: :b, adapter: :nyaplot
110
+
111
+ df = Daru::DataFrame.new({
112
+ a: [1, 3, 5, 7, 5, 0],
113
+ b: [1, 5, 2, 5, 1, 0],
114
+ c: [1, 6, 7, 2, 6, 0]
115
+ }, index: 'a'..'f')
116
+ @df_line = Daru::View::Plot.new df, type: :line, x: :a, y: :b, adapter: :nyaplot
117
+ end
118
+
119
+ def googlecharts_example
120
+ country_population = [
121
+ ['Germany', 200],
122
+ ['United States', 300],
123
+ ['Brazil', 400],
124
+ ['Canada', 500],
125
+ ['France', 600],
126
+ ['RU', 700]
127
+ ]
128
+ df_cp = Daru::DataFrame.rows(country_population)
129
+ df_cp.vectors = Daru::Index.new(['Country', 'Population'])
130
+ @table = Daru::View::Table.new(df_cp, pageSize: 5, adapter: :googlecharts, height: 400, width: 300)
131
+ @piechart = Daru::View::Plot.new(
132
+ @table.table, type: :pie, is3D: true, adapter: :googlecharts, height: 500, width: 800)
133
+ @geochart = Daru::View::Plot.new(
134
+ @table.table, type: :geo, adapter: :googlecharts, height: 500, width: 800)
135
+ end
136
+
137
+ def make_random_series(step)
138
+ data = []
139
+ for i in 0..10
140
+ data << [(rand * 100).to_i]
141
+ end
142
+ data
143
+ end
File without changes
@@ -0,0 +1,31 @@
1
+ <h3> Pie Graph </h3>
2
+ <p>
3
+ <b>Data : (The Google datatable is created using Daru::DataFrame. ) </b>
4
+ <%= @table.div %>
5
+ <br>
6
+ <b>Options</b>
7
+ <%= @piechart.options %>
8
+ <br>
9
+ <b>Chart : </b>
10
+ <br>
11
+ <%= @piechart.div %>
12
+ </p>
13
+ <br>
14
+
15
+ <br>
16
+
17
+ <h3> Geo Graph </h3>
18
+ <p>
19
+ <b>Data : </b>
20
+ <%= @table.div %>
21
+ <br>
22
+ <b>Options</b>
23
+ <%= @geochart.options %>
24
+ <br>
25
+ <b>Chart : </b>
26
+ <br>
27
+ <%= @geochart.div %>
28
+ </p>
29
+ <br>
30
+
31
+ <br>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>googlecharts</title>
5
+
6
+ <!-- dependent script -->
7
+ <%= Daru::View.dependent_script(:googlecharts) %>
8
+ </head>
9
+ <body>
10
+ <%= yield %>
11
+ </body>
12
+ </html>
@@ -0,0 +1,15 @@
1
+ <h3> bar Graph </h3>
2
+ <p>
3
+ <b>Data : </b>
4
+ <% @bar_basic.data %>
5
+ <br>
6
+ <b>Options</b>
7
+ <%= @bar_basic.options %>
8
+ <br>
9
+ <b>Chart : </b>
10
+ <br>
11
+ <%= @bar_basic.div %>
12
+ </p>
13
+ <br>
14
+
15
+ <br>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>highcharts</title>
5
+
6
+ <!-- dependent script -->
7
+ <%= Daru::View.dependent_script(:highcharts) %>
8
+ </head>
9
+ <body>
10
+ <%= yield %>
11
+ </body>
12
+ </html>
@@ -0,0 +1,2 @@
1
+
2
+
@@ -0,0 +1,26 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <html>
5
+ <head>
6
+ <title>Dummy</title>
7
+
8
+
9
+ </head>
10
+ <body>
11
+ <p>
12
+
13
+ go to <a href=" http://localhost:4567/nyaplot"> http://localhost:4567/nyaplot</a> , to see the Nyaplot examples
14
+ </p>
15
+
16
+ <p>
17
+
18
+ go to <a href="http://localhost:4567/highcharts">http://localhost:4567/highcharts</a> , to see the highcharts examples
19
+ </p>
20
+
21
+ <p>
22
+
23
+ go to <a href="http://localhost:4567/googlecharts">http://localhost:4567/googlecharts</a> , to see the highcharts examples
24
+ </p>
25
+ </body>
26
+ </html>
@@ -0,0 +1,13 @@
1
+ <h3> bar Graph </h3>
2
+ <p>
3
+ <b>Data : </b>
4
+ <%= @bar_graph.data %>
5
+ <br>
6
+ <b>Options</b>
7
+ <%= @bar_graph.options %>
8
+ <br>
9
+ <b>Chart : </b>
10
+ <br>
11
+ <%= @bar_graph.div %>
12
+ </p>
13
+ <br>
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Nyaplot</title>
5
+
6
+
7
+ <!-- dependent script -->
8
+ <%= Daru::View.dependent_script(:nyaplot) %>
9
+
10
+ </head>
11
+ <body>
12
+ <%= yield %>
13
+ </body>
14
+ </html>
data/spec/plot_spec.rb ADDED
@@ -0,0 +1,86 @@
1
+ describe Daru::View::Plot, 'Chart plotting with Nyaplot library' do
2
+ let(:df) do
3
+ Daru::DataFrame.new(
4
+ {
5
+ a: [1, 2, 3, 4, 5, 6],
6
+ b: [1, 5, 2, 5, 1, 0],
7
+ c: [1, 6, 7, 2, 6, 0]
8
+ }, index: 'a'..'f'
9
+ )
10
+ end
11
+ let(:dv) { Daru::Vector.new [1, 2, 3] }
12
+ let(:lib) { Daru::View.plotting_library }
13
+ let(:plot_df) { Daru::View::Plot.new(df, type: :line, x: :a, y: :c) }
14
+ let(:plot_dv) { Daru::View::Plot.new(dv, type: :line) }
15
+ context 'initialize' do
16
+ before { Daru::View.plotting_library = :nyaplot }
17
+ context 'chart using DataFrame' do
18
+ it { expect(plot_df).to be_a Daru::View::Plot }
19
+ it { expect(plot_df.chart.class).to eq Nyaplot::Plot }
20
+ end
21
+
22
+ context 'chart using Vector' do
23
+ it { expect(plot_dv).to be_a Daru::View::Plot }
24
+ it { expect(plot_dv.chart).to be_a Nyaplot::Plot }
25
+ end
26
+
27
+ context 'fails when other than DataFrame and Vector is as data' do
28
+ # expect{Daru::View::Plot.new()}
29
+ # .to raise_error(ArgumentError,
30
+ # /Nyaplot Library, data must be in Daru::Vector or Daru::DataFrame/)
31
+ end
32
+ end
33
+ end
34
+
35
+ describe Daru::View::Plot, 'Chart plotting with Highcharts library' do
36
+ context 'initialize with Nyaplot library' do
37
+ context 'Highcharts library' do
38
+ before { Daru::View.plotting_library = :highcharts }
39
+ let(:lib) { Daru::View.plotting_library }
40
+ let(:plot_array) { Daru::View::Plot.new([1, 2, 3]) }
41
+ it 'check plotting library' do
42
+ expect(lib).to eq(:highcharts)
43
+ end
44
+
45
+ it 'Highcharts chart using Array' do
46
+ expect(plot_array).to be_a Daru::View::Plot
47
+ expect(plot_array.chart).to be_a LazyHighCharts::HighChart
48
+ end
49
+
50
+ it 'Highcharts chart using DataFrame' do
51
+ # todo
52
+ end
53
+
54
+ it 'Highcharts chart using Vector' do
55
+ # todo
56
+ end
57
+ end
58
+ end # initialize context end
59
+ end
60
+
61
+ describe Daru::View::Plot, 'Chart plotting with Googlecharts library' do
62
+ context 'initialize with Googlecharts library' do
63
+ context 'Googlecharts library' do
64
+ before { Daru::View.plotting_library = :googlecharts }
65
+ let(:lib) { Daru::View.plotting_library }
66
+ let(:plot_array) { Daru::View::Plot.new(
67
+ [['col1', 'col2', 'col3'],[1, 2, 3]]) }
68
+ it 'check plotting library' do
69
+ expect(lib).to eq(:googlecharts)
70
+ end
71
+
72
+ it 'Googlecharts chart using Array' do
73
+ expect(plot_array).to be_a Daru::View::Plot
74
+ expect(plot_array.chart).to be_a GoogleVisualr::Interactive::LineChart
75
+ end
76
+
77
+ it 'Googlecharts chart using DataFrame' do
78
+ # todo
79
+ end
80
+
81
+ it 'Googlecharts chart using Vector' do
82
+ # todo
83
+ end
84
+ end
85
+ end # initialize context end
86
+ end
@@ -0,0 +1,11 @@
1
+ require 'rspec'
2
+ require 'simplecov'
3
+ require 'daru/view'
4
+ require 'daru'
5
+
6
+ # Configure Rails Environment
7
+ # these lines are needed when spec/dummy_rails will be created
8
+ # ENV["RAILS_ENV"] = "test"
9
+ # require File.expand_path("../dummy_rails/config/environment.rb", __FILE__)
10
+
11
+ SimpleCov.start
metadata ADDED
@@ -0,0 +1,568 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: daru-view
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Shekhar Prasad Rajak
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: simplecov
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: google_visualr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: lazy_high_charts
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: daru
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: nyaplot
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: daru-data_tables
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: actionview
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubygems-tasks
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ description: |2
210
+ Daru (Data Analysis in RUby) is a library for analysis, manipulation and
211
+ visualization of data. Daru-view is for easy and interactive plotting in web
212
+ application & IRuby notebook. It can work in frameworks e.g. Rails, Sinatra,
213
+ Nanoc and hopefully in others too.
214
+ email:
215
+ - shekharrajak@live.com
216
+ executables: []
217
+ extensions: []
218
+ extra_rdoc_files: []
219
+ files:
220
+ - ".gitignore"
221
+ - ".rspec"
222
+ - ".rubocop.yml"
223
+ - ".simplecov"
224
+ - ".travis.yml"
225
+ - CHANGELOG.md
226
+ - CODE_OF_CONDUCT.md
227
+ - CONTRIBUTING.md
228
+ - Gemfile
229
+ - LICENSE.txt
230
+ - README.md
231
+ - Rakefile
232
+ - _config.yml
233
+ - daru-view.gemspec
234
+ - lib/assets/.keep
235
+ - lib/daru/view.rb
236
+ - lib/daru/view/adapters/datatables.rb
237
+ - lib/daru/view/adapters/googlecharts.rb
238
+ - lib/daru/view/adapters/googlecharts/data_table_iruby.rb
239
+ - lib/daru/view/adapters/googlecharts/display.rb
240
+ - lib/daru/view/adapters/googlecharts/iruby_notebook.rb
241
+ - lib/daru/view/adapters/highcharts.rb
242
+ - lib/daru/view/adapters/highcharts/core_ext/string.rb
243
+ - lib/daru/view/adapters/highcharts/display.rb
244
+ - lib/daru/view/adapters/highcharts/iruby_notebook.rb
245
+ - lib/daru/view/adapters/highcharts/layout_helper_iruby.rb
246
+ - lib/daru/view/adapters/js/googlecharts_js/google_visualr.js
247
+ - lib/daru/view/adapters/js/googlecharts_js/loader.js
248
+ - lib/daru/view/adapters/js/highcharts_js/adapters/mootools-adapter.js
249
+ - lib/daru/view/adapters/js/highcharts_js/adapters/prototype-adapter.js
250
+ - lib/daru/view/adapters/js/highcharts_js/highcharts-3d.js
251
+ - lib/daru/view/adapters/js/highcharts_js/highcharts-more.js
252
+ - lib/daru/view/adapters/js/highcharts_js/highcharts.js
253
+ - lib/daru/view/adapters/js/highcharts_js/highstock.js
254
+ - lib/daru/view/adapters/js/highcharts_js/modules/accessibility.js
255
+ - lib/daru/view/adapters/js/highcharts_js/modules/annotations.js
256
+ - lib/daru/view/adapters/js/highcharts_js/modules/boost.js
257
+ - lib/daru/view/adapters/js/highcharts_js/modules/broken-axis.js
258
+ - lib/daru/view/adapters/js/highcharts_js/modules/canvas-tools.js
259
+ - lib/daru/view/adapters/js/highcharts_js/modules/data.js
260
+ - lib/daru/view/adapters/js/highcharts_js/modules/drilldown.js
261
+ - lib/daru/view/adapters/js/highcharts_js/modules/exporting.js
262
+ - lib/daru/view/adapters/js/highcharts_js/modules/funnel.js
263
+ - lib/daru/view/adapters/js/highcharts_js/modules/heatmap.js
264
+ - lib/daru/view/adapters/js/highcharts_js/modules/no-data-to-display.js
265
+ - lib/daru/view/adapters/js/highcharts_js/modules/offline-exporting.js
266
+ - lib/daru/view/adapters/js/highcharts_js/modules/solid-gauge.js
267
+ - lib/daru/view/adapters/js/highcharts_js/modules/treemap.js
268
+ - lib/daru/view/adapters/js/highcharts_js/stock/adapters/mootools-adapter.js
269
+ - lib/daru/view/adapters/js/highcharts_js/stock/adapters/prototype-adapter.js
270
+ - lib/daru/view/adapters/js/highcharts_js/stock/highcharts-more.js
271
+ - lib/daru/view/adapters/js/highcharts_js/stock/modules/exporting.js
272
+ - lib/daru/view/adapters/js/highcharts_js/stock/modules/funnel.js
273
+ - lib/daru/view/adapters/js/nyaplot_js/d3-downloadable.js
274
+ - lib/daru/view/adapters/js/nyaplot_js/d3.min.js
275
+ - lib/daru/view/adapters/js/nyaplot_js/nyaplot.js
276
+ - lib/daru/view/adapters/nyaplot.rb
277
+ - lib/daru/view/adapters/nyaplot/display.rb
278
+ - lib/daru/view/adapters/nyaplot/iruby_notebook.rb
279
+ - lib/daru/view/app/rails/helpers/view_helper.rb
280
+ - lib/daru/view/app/rails/railtie.rb
281
+ - lib/daru/view/plot.rb
282
+ - lib/daru/view/table.rb
283
+ - lib/daru/view/templates/googlecharts/chart_div.erb
284
+ - lib/daru/view/templates/googlecharts/init.inline.js.erb
285
+ - lib/daru/view/templates/highcharts/init.inline.js.erb
286
+ - lib/daru/view/templates/highcharts/static_html.erb
287
+ - lib/daru/view/templates/nyaplot/init.inline.js.erb
288
+ - lib/daru/view/templates/nyaplot/init_script.erb
289
+ - lib/daru/view/version.rb
290
+ - lib/tasks/.keep
291
+ - lib/tasks/google_charts.rake
292
+ - lib/tasks/high_charts.rake
293
+ - lib/tasks/nyaplot.rake
294
+ - spec/adapters/datatables_spec.rb
295
+ - spec/adapters/googlecharts_spec.rb
296
+ - spec/adapters/highcharts_spec.rb
297
+ - spec/adapters/nyaplot_spec.rb
298
+ - spec/app/rails/helpers/view_helpers_spec.rb
299
+ - spec/dummy_iruby/.ipynb_checkpoints/Daru DataFrame and DataTables-checkpoint.ipynb
300
+ - spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb
301
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Line Chart-checkpoint.ipynb
302
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb
303
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb
304
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb
305
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb
306
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb
307
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb
308
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb
309
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb
310
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb
311
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb
312
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb
313
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb
314
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb
315
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb
316
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb
317
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb
318
+ - spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb
319
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Area chart-checkpoint.ipynb
320
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Bar Chart-checkpoint.ipynb
321
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - column charts-checkpoint.ipynb
322
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts- Pie charts-checkpoint.ipynb
323
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Combinations -checkpoint.ipynb
324
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Daynamic charts-checkpoint.ipynb
325
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs-checkpoint.ipynb
326
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs2-checkpoint.ipynb
327
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - scatter -bubble charts-checkpoint.ipynb
328
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts
329
+ examples-checkpoint.ipynb
330
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb
331
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot other examples-checkpoint.ipynb
332
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot testing -checkpoint.ipynb
333
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame | from
334
+ daru examples-checkpoint.ipynb
335
+ - spec/dummy_iruby/.ipynb_checkpoints/Pie Chart using HighCharts2-checkpoint.ipynb
336
+ - spec/dummy_iruby/.ipynb_checkpoints/highcharts - Use HTML table (generated from
337
+ daru) as data source-checkpoint.ipynb
338
+ - spec/dummy_iruby/.ipynb_checkpoints/spec_testing-checkpoint.ipynb
339
+ - spec/dummy_iruby/Daru DataFrame and DataTables.ipynb
340
+ - spec/dummy_iruby/DataTables | basic examples.ipynb
341
+ - spec/dummy_iruby/Gemfile
342
+ - spec/dummy_iruby/Gemfile.lock
343
+ - spec/dummy_iruby/Google Chart | Line Chart.ipynb
344
+ - spec/dummy_iruby/Google Chart | Area Chart.ipynb
345
+ - spec/dummy_iruby/Google Chart | Bar Chart.ipynb
346
+ - spec/dummy_iruby/Google Chart | Bubble Chart.ipynb
347
+ - spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb
348
+ - spec/dummy_iruby/Google Chart | Combo Chart.ipynb
349
+ - spec/dummy_iruby/Google Chart | Histogram.ipynb
350
+ - spec/dummy_iruby/Google Chart | Org Chart.ipynb
351
+ - spec/dummy_iruby/Google Chart | Pie Chart.ipynb
352
+ - spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb
353
+ - spec/dummy_iruby/Google Chart | Timeline.ipynb
354
+ - spec/dummy_iruby/Google Chart | Treemap.ipynb
355
+ - spec/dummy_iruby/Google Chart | gauge.ipynb
356
+ - spec/dummy_iruby/Google Charts | Basics.ipynb
357
+ - spec/dummy_iruby/Google Charts | Column Charts.ipynb
358
+ - spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb
359
+ - spec/dummy_iruby/Google Charts | Scatter Chart.ipynb
360
+ - spec/dummy_iruby/GoolgeChart | Datatables.ipynb
361
+ - spec/dummy_iruby/HighCharts - Area chart.ipynb
362
+ - spec/dummy_iruby/HighCharts - Bar Chart.ipynb
363
+ - spec/dummy_iruby/HighCharts - column charts.ipynb
364
+ - spec/dummy_iruby/HighCharts- Pie charts.ipynb
365
+ - spec/dummy_iruby/Highcharts - Combinations .ipynb
366
+ - spec/dummy_iruby/Highcharts - Daynamic charts.ipynb
367
+ - spec/dummy_iruby/Highcharts - line graphs.ipynb
368
+ - spec/dummy_iruby/Highcharts - line graphs2.ipynb
369
+ - spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb
370
+ - spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb
371
+ - spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb
372
+ - spec/dummy_iruby/Nyaplot other examples.ipynb
373
+ - spec/dummy_iruby/Nyaplot testing .ipynb
374
+ - spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame | from daru
375
+ examples.ipynb
376
+ - spec/dummy_iruby/Pie Chart using HighCharts2.ipynb
377
+ - spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb
378
+ - spec/dummy_iruby/spec_testing.ipynb
379
+ - spec/dummy_nanoc/Gemfile
380
+ - spec/dummy_nanoc/Gemfile.lock
381
+ - spec/dummy_nanoc/README.md
382
+ - spec/dummy_nanoc/Rules
383
+ - spec/dummy_nanoc/content/googlecharts/index.html
384
+ - spec/dummy_nanoc/content/highcharts/index.html
385
+ - spec/dummy_nanoc/content/index.html
386
+ - spec/dummy_nanoc/content/nyaplot/index.html
387
+ - spec/dummy_nanoc/content/stylesheet.css
388
+ - spec/dummy_nanoc/layouts/default.html
389
+ - spec/dummy_nanoc/layouts/googlecharts_layout.html
390
+ - spec/dummy_nanoc/layouts/highcharts_layout.html
391
+ - spec/dummy_nanoc/layouts/nyaplot_layout.html
392
+ - spec/dummy_nanoc/lib/default.rb
393
+ - spec/dummy_nanoc/nanoc.yaml
394
+ - spec/dummy_nanoc/output/googlecharts/index.html
395
+ - spec/dummy_nanoc/output/highcharts/index.html
396
+ - spec/dummy_nanoc/output/index.html
397
+ - spec/dummy_nanoc/output/nyaplot/index.html
398
+ - spec/dummy_nanoc/output/stylesheet.css
399
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/checksums
400
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/compiled_content
401
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/dependencies
402
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/outdatedness
403
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/rule_memory
404
+ - spec/dummy_sinatra/Gemfile
405
+ - spec/dummy_sinatra/Gemfile.lock
406
+ - spec/dummy_sinatra/README.md
407
+ - spec/dummy_sinatra/app.rb
408
+ - spec/dummy_sinatra/config.ru
409
+ - spec/dummy_sinatra/views/googlecharts.erb
410
+ - spec/dummy_sinatra/views/googlecharts_layout.erb
411
+ - spec/dummy_sinatra/views/highcharts.erb
412
+ - spec/dummy_sinatra/views/highcharts_layout.erb
413
+ - spec/dummy_sinatra/views/index.erb
414
+ - spec/dummy_sinatra/views/layout.erb
415
+ - spec/dummy_sinatra/views/nyaplot.erb
416
+ - spec/dummy_sinatra/views/nyaplot_layout.erb
417
+ - spec/plot_spec.rb
418
+ - spec/spec_helper.rb
419
+ homepage: https://github.com/Shekharrajak/daru-view
420
+ licenses:
421
+ - MIT
422
+ metadata: {}
423
+ post_install_message:
424
+ rdoc_options: []
425
+ require_paths:
426
+ - lib
427
+ required_ruby_version: !ruby/object:Gem::Requirement
428
+ requirements:
429
+ - - ">="
430
+ - !ruby/object:Gem::Version
431
+ version: '0'
432
+ required_rubygems_version: !ruby/object:Gem::Requirement
433
+ requirements:
434
+ - - ">="
435
+ - !ruby/object:Gem::Version
436
+ version: '0'
437
+ requirements: []
438
+ rubyforge_project:
439
+ rubygems_version: 2.6.13
440
+ signing_key:
441
+ specification_version: 4
442
+ summary: Plugin gem to Data Analysis in RUby(Daru) for visualisation of data
443
+ test_files:
444
+ - spec/adapters/datatables_spec.rb
445
+ - spec/adapters/googlecharts_spec.rb
446
+ - spec/adapters/highcharts_spec.rb
447
+ - spec/adapters/nyaplot_spec.rb
448
+ - spec/app/rails/helpers/view_helpers_spec.rb
449
+ - spec/dummy_iruby/.ipynb_checkpoints/Daru DataFrame and DataTables-checkpoint.ipynb
450
+ - spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb
451
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Line Chart-checkpoint.ipynb
452
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb
453
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb
454
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb
455
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb
456
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb
457
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb
458
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb
459
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb
460
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb
461
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb
462
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb
463
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb
464
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb
465
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb
466
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb
467
+ - spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb
468
+ - spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb
469
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Area chart-checkpoint.ipynb
470
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Bar Chart-checkpoint.ipynb
471
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts - column charts-checkpoint.ipynb
472
+ - spec/dummy_iruby/.ipynb_checkpoints/HighCharts- Pie charts-checkpoint.ipynb
473
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Combinations -checkpoint.ipynb
474
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Daynamic charts-checkpoint.ipynb
475
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs-checkpoint.ipynb
476
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs2-checkpoint.ipynb
477
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts - scatter -bubble charts-checkpoint.ipynb
478
+ - spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts
479
+ examples-checkpoint.ipynb
480
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb
481
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot other examples-checkpoint.ipynb
482
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot testing -checkpoint.ipynb
483
+ - spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame | from
484
+ daru examples-checkpoint.ipynb
485
+ - spec/dummy_iruby/.ipynb_checkpoints/Pie Chart using HighCharts2-checkpoint.ipynb
486
+ - spec/dummy_iruby/.ipynb_checkpoints/highcharts - Use HTML table (generated from
487
+ daru) as data source-checkpoint.ipynb
488
+ - spec/dummy_iruby/.ipynb_checkpoints/spec_testing-checkpoint.ipynb
489
+ - spec/dummy_iruby/Daru DataFrame and DataTables.ipynb
490
+ - spec/dummy_iruby/DataTables | basic examples.ipynb
491
+ - spec/dummy_iruby/Gemfile
492
+ - spec/dummy_iruby/Gemfile.lock
493
+ - spec/dummy_iruby/Google Chart | Line Chart.ipynb
494
+ - spec/dummy_iruby/Google Chart | Area Chart.ipynb
495
+ - spec/dummy_iruby/Google Chart | Bar Chart.ipynb
496
+ - spec/dummy_iruby/Google Chart | Bubble Chart.ipynb
497
+ - spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb
498
+ - spec/dummy_iruby/Google Chart | Combo Chart.ipynb
499
+ - spec/dummy_iruby/Google Chart | Histogram.ipynb
500
+ - spec/dummy_iruby/Google Chart | Org Chart.ipynb
501
+ - spec/dummy_iruby/Google Chart | Pie Chart.ipynb
502
+ - spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb
503
+ - spec/dummy_iruby/Google Chart | Timeline.ipynb
504
+ - spec/dummy_iruby/Google Chart | Treemap.ipynb
505
+ - spec/dummy_iruby/Google Chart | gauge.ipynb
506
+ - spec/dummy_iruby/Google Charts | Basics.ipynb
507
+ - spec/dummy_iruby/Google Charts | Column Charts.ipynb
508
+ - spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb
509
+ - spec/dummy_iruby/Google Charts | Scatter Chart.ipynb
510
+ - spec/dummy_iruby/GoolgeChart | Datatables.ipynb
511
+ - spec/dummy_iruby/HighCharts - Area chart.ipynb
512
+ - spec/dummy_iruby/HighCharts - Bar Chart.ipynb
513
+ - spec/dummy_iruby/HighCharts - column charts.ipynb
514
+ - spec/dummy_iruby/HighCharts- Pie charts.ipynb
515
+ - spec/dummy_iruby/Highcharts - Combinations .ipynb
516
+ - spec/dummy_iruby/Highcharts - Daynamic charts.ipynb
517
+ - spec/dummy_iruby/Highcharts - line graphs.ipynb
518
+ - spec/dummy_iruby/Highcharts - line graphs2.ipynb
519
+ - spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb
520
+ - spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb
521
+ - spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb
522
+ - spec/dummy_iruby/Nyaplot other examples.ipynb
523
+ - spec/dummy_iruby/Nyaplot testing .ipynb
524
+ - spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame | from daru
525
+ examples.ipynb
526
+ - spec/dummy_iruby/Pie Chart using HighCharts2.ipynb
527
+ - spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb
528
+ - spec/dummy_iruby/spec_testing.ipynb
529
+ - spec/dummy_nanoc/Gemfile
530
+ - spec/dummy_nanoc/Gemfile.lock
531
+ - spec/dummy_nanoc/README.md
532
+ - spec/dummy_nanoc/Rules
533
+ - spec/dummy_nanoc/content/googlecharts/index.html
534
+ - spec/dummy_nanoc/content/highcharts/index.html
535
+ - spec/dummy_nanoc/content/index.html
536
+ - spec/dummy_nanoc/content/nyaplot/index.html
537
+ - spec/dummy_nanoc/content/stylesheet.css
538
+ - spec/dummy_nanoc/layouts/default.html
539
+ - spec/dummy_nanoc/layouts/googlecharts_layout.html
540
+ - spec/dummy_nanoc/layouts/highcharts_layout.html
541
+ - spec/dummy_nanoc/layouts/nyaplot_layout.html
542
+ - spec/dummy_nanoc/lib/default.rb
543
+ - spec/dummy_nanoc/nanoc.yaml
544
+ - spec/dummy_nanoc/output/googlecharts/index.html
545
+ - spec/dummy_nanoc/output/highcharts/index.html
546
+ - spec/dummy_nanoc/output/index.html
547
+ - spec/dummy_nanoc/output/nyaplot/index.html
548
+ - spec/dummy_nanoc/output/stylesheet.css
549
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/checksums
550
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/compiled_content
551
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/dependencies
552
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/outdatedness
553
+ - spec/dummy_nanoc/tmp/nanoc/1029d67644815/rule_memory
554
+ - spec/dummy_sinatra/Gemfile
555
+ - spec/dummy_sinatra/Gemfile.lock
556
+ - spec/dummy_sinatra/README.md
557
+ - spec/dummy_sinatra/app.rb
558
+ - spec/dummy_sinatra/config.ru
559
+ - spec/dummy_sinatra/views/googlecharts.erb
560
+ - spec/dummy_sinatra/views/googlecharts_layout.erb
561
+ - spec/dummy_sinatra/views/highcharts.erb
562
+ - spec/dummy_sinatra/views/highcharts_layout.erb
563
+ - spec/dummy_sinatra/views/index.erb
564
+ - spec/dummy_sinatra/views/layout.erb
565
+ - spec/dummy_sinatra/views/nyaplot.erb
566
+ - spec/dummy_sinatra/views/nyaplot_layout.erb
567
+ - spec/plot_spec.rb
568
+ - spec/spec_helper.rb