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,12 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'nanoc'
4
+ # to run nanoc view command
5
+ gem 'adsf'
6
+
7
+ # daru is not added in gemspec
8
+ gem "daru", git: 'https://github.com/SciRuby/daru.git'
9
+ gem 'nyaplot', git: 'https://github.com/sciruby/nyaplot.git'
10
+
11
+ gemspec :path => '../../'
12
+ gem 'nokogiri'
@@ -0,0 +1,40 @@
1
+ # README
2
+
3
+
4
+ * System dependencies
5
+
6
+ `bundle install`
7
+
8
+ * Deployment instructions
9
+
10
+ Complie it :
11
+
12
+ `bundle exec nanoc`
13
+
14
+ Run it :
15
+
16
+ `bundle exec nanoc view`
17
+
18
+ goto:
19
+
20
+ ```
21
+ localhost:3000/nyaplot
22
+
23
+ localhost:3000/highcharts
24
+
25
+ localhost:3000/googlecharts
26
+
27
+ ```
28
+
29
+ Live demo link :
30
+
31
+ Note : There is some problem in nyaplot (in live link. It works fine locally). Some css is not working so some styling doesn't working properly. You can see it properly in local setup.
32
+
33
+ [index.html](https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/)
34
+
35
+
36
+ [nyaplot](https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/nyaplot)
37
+
38
+ [highcharts](https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/highcharts)
39
+
40
+ [googlecharts](https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/googlecharts)
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # compile '/**/*.html' do
4
+ # layout '/default.*'
5
+ # end
6
+
7
+ # # This is an example rule that matches Markdown (.md) files, and filters them
8
+ # # using the :kramdown filter. It is commented out by default, because kramdown
9
+ # # is not bundled with Nanoc or Ruby.
10
+ # #
11
+ # #compile '/**/*.md' do
12
+ # # filter :kramdown
13
+ # # layout '/default.*'
14
+ # #end
15
+
16
+ # route '/**/*.{html,md,rb}' do
17
+ # if item.identifier =~ '/index.*'
18
+ # '/index.html'
19
+ # else
20
+ # item.identifier.without_ext + '/index.html'
21
+ # end
22
+ # end
23
+
24
+ # compile '/**/*' do
25
+ # write item.identifier.to_s
26
+ # end
27
+
28
+ layout '/**/*', :erb
29
+
30
+ # Below is added by Shekhar. on 7 July 2017
31
+ # default rep, although you can pass
32
+ # :rep => :default explicitly too
33
+ compile '/nyaplot/*.{html}' do
34
+ filter :erb
35
+ layout '/nyaplot_layout.*'
36
+ end
37
+
38
+ route '/nyaplot/*.{html}' do
39
+ # Just an example; you probably need something else
40
+ '/' + item.identifier
41
+ end
42
+
43
+ compile '/highcharts/*.{html}' do
44
+ filter :erb
45
+ layout '/highcharts_layout.*'
46
+ end
47
+
48
+ route '/highcharts/*.{html}' do
49
+ # Just an example; you probably need something else
50
+ '/' + item.identifier
51
+ end
52
+
53
+ compile '/googlecharts/*.{html}' do
54
+ filter :erb
55
+ layout '/googlecharts_layout.*'
56
+ end
57
+
58
+ route '/googlecharts/*.{html}' do
59
+ # Just an example; you probably need something else
60
+ '/' + item.identifier
61
+ end
62
+
63
+ # to compile outer index.html
64
+ compile '/index.html' do
65
+ layout '/default.*'
66
+ end
67
+
68
+ route '/*.{html}' do
69
+ if item.identifier =~ '/index.*'
70
+ '/index.html'
71
+ else
72
+ item.identifier.without_ext + '/index.html'
73
+ end
74
+ end
75
+
76
+ # stylesheet.css compile
77
+ compile '/**/*' do
78
+ write item.identifier.to_s
79
+ end
80
+
81
+ # compile '/stuff/*/', :rep => :special do
82
+ # filter :erb
83
+ # layout 'special' # this is different
84
+ # end
85
+
86
+ # route '/stuff/*/', :rep => :special do
87
+ # # /stuff/foo/ -> /special/stuff/foo/
88
+ # # Again, just an example
89
+ # '/special' + item.identifier
90
+ # end
@@ -0,0 +1,29 @@
1
+ ---
2
+ title: Google charts
3
+ ---
4
+
5
+ <h1>Google Charts examples</h1>
6
+
7
+ <div style="margin-top: 100px; margin-bottom: 100px">
8
+ <h3>Line example</h3>
9
+ <p>
10
+ <% @data, @div = googlecharts_example_line %>
11
+ <b>Data : (Data is loaded from the Daru DataFrame . Below table is google DataTable)</b>
12
+ <%= @data %>
13
+
14
+ </p>
15
+ <p><%= @div %></p>
16
+ </div>
17
+
18
+
19
+
20
+ <div style="margin-top: 100px; margin-bottom: 100px">
21
+ <h3>Line example</h3>
22
+ <p>
23
+ <% @data, @div = googlecharts_example_geo %>
24
+ <b>Data : (Data is loaded from the Daru DataFrame . Below table is google DataTable)</b>
25
+ <%= @data %>
26
+
27
+ </p>
28
+ <p><%= @div %></p>
29
+ </div>
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: Highcharts
3
+ ---
4
+
5
+ <h1>Highcharts examples</h1>
6
+
7
+ <div style="margin-top: 100px; margin-bottom: 100px">
8
+ <h3>Line example</h3>
9
+ <p>
10
+ <% @data, @div = highcharts_example_line %>
11
+ <b>Data : </b>
12
+ <%= @data%>
13
+
14
+ </p>
15
+ <p><%= @div %></p>
16
+ </div>
17
+
18
+
19
+
20
+ <div style="margin-top: 100px; margin-bottom: 100px">
21
+ <h3>Line example Drag and zoom</h3>
22
+ <p>
23
+ <% @data, @div = highcharts_example_drag %>
24
+ <b>Data : </b>
25
+ <%= @data%>
26
+
27
+ </p>
28
+ <p><%= @div %></p>
29
+ </div>
30
+
31
+
32
+
33
+ <div style="margin-top: 100px; margin-bottom: 100px">
34
+ <h3>Dynamic chart example </h3>
35
+ <p>
36
+ <% @data, @div = highcharts_example_dynamic %>
37
+ <b>Data : </b>
38
+ <%= @data%>
39
+
40
+ </p>
41
+ <p><%= @div %></p>
42
+ </div>
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Home
3
+ ---
4
+
5
+ <h1>Daru-view examples</h1>
6
+
7
+ <a href="http://localhost:3000/nyaplot/">Nyaplot Examples </a><br><br>
8
+ <a href="http://localhost:3000/highcharts/">Highcharts Examples </a>
9
+
10
+ <br><br>
11
+ <a href="http://localhost:3000/googlecharts/">Google Charts Examples </a>
12
+
13
+ <br>
14
+
15
+ <h3>Live demo on these links :</h3>
16
+
17
+ <p>
18
+ <b>Note : </b>There is some problem in nyaplot (in live link. It works fine locally). Some css is not working so some styling doesn't working properly. You can see it properly in local setup.
19
+ </p>
20
+
21
+ <a href="https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/"> Index.html</a>
22
+ <br><br>
23
+ <a href="https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/nyaplot/">Nyaplot Examples </a><br><br>
24
+ <a href="https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/highcharts/">Highcharts Examples </a>
25
+ <br><br>
26
+ <a href="https://shekharrajak.github.io/daru-view/spec/dummy_nanoc/output/googlecharts/">Google Charts Examples </a>
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: Nayplot
3
+ ---
4
+
5
+ <h1>Nayplot examples</h1>
6
+
7
+ <%= nyaplot_example_bar %>
8
+ <%= nyaplot_example_scatter %>
9
+ <%= nyaplot_example_line %>
@@ -0,0 +1,101 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+
5
+ font-family: Georgia, Palatino, serif;
6
+ }
7
+
8
+ body {
9
+ background: #fff;
10
+ }
11
+
12
+ a {
13
+ text-decoration: none;
14
+ }
15
+
16
+ a:link,
17
+ a:visited {
18
+ color: #f30;
19
+ }
20
+
21
+ a:hover {
22
+ color: #f90;
23
+ }
24
+
25
+ #main {
26
+ position: absolute;
27
+
28
+ top: 40px;
29
+ left: 280px;
30
+
31
+ width: 500px;
32
+ }
33
+
34
+ #main h1 {
35
+ font-size: 40px;
36
+ font-weight: normal;
37
+
38
+ line-height: 40px;
39
+
40
+ letter-spacing: -1px;
41
+ }
42
+
43
+ #main p {
44
+ margin: 20px 0;
45
+
46
+ font-size: 15px;
47
+
48
+ line-height: 20px;
49
+ }
50
+
51
+ #main ul, #main ol {
52
+ margin: 20px;
53
+ }
54
+
55
+ #main li {
56
+ font-size: 15px;
57
+
58
+ line-height: 20px;
59
+ }
60
+
61
+ #main ul li {
62
+ list-style-type: square;
63
+ }
64
+
65
+ #sidebar {
66
+ position: absolute;
67
+
68
+ top: 40px;
69
+ left: 20px;
70
+ width: 200px;
71
+
72
+ padding: 20px 20px 0 0;
73
+
74
+ border-right: 1px solid #ccc;
75
+
76
+ text-align: right;
77
+ }
78
+
79
+ #sidebar h2 {
80
+ text-transform: uppercase;
81
+
82
+ font-size: 13px;
83
+
84
+ color: #333;
85
+
86
+ letter-spacing: 1px;
87
+
88
+ line-height: 20px;
89
+ }
90
+
91
+ #sidebar ul {
92
+ list-style-type: none;
93
+
94
+ margin: 20px 0;
95
+ }
96
+
97
+ #sidebar li {
98
+ font-size: 14px;
99
+
100
+ line-height: 20px;
101
+ }
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE HTML>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>A Brand New Nanoc Site - <%= @item[:title] %></title>
6
+ <link rel="stylesheet" href="/stylesheet.css">
7
+
8
+ <!-- you don't need to keep this, but it's cool for stats! -->
9
+ <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>">
10
+ <%= nayplot_dependent_js %>
11
+ </head>
12
+ <body>
13
+ <div id="main">
14
+ <%= yield %>
15
+
16
+ </div>
17
+
18
+ <div id="sidebar">
19
+ <h2>Documentation</h2>
20
+ <ul>
21
+ <li><a href="https://shekharrajak.github.io/daru-view/">Documentation</a></li>
22
+ <li><a href="http://nbviewer.jupyter.org/github/shekharrajak/daru-view/tree/master/spec/dummy_iruby/">Tutorial</a></li>
23
+ </ul>
24
+ <h2>Community</h2>
25
+ <ul>
26
+ <li><a href="https://groups.google.com/forum/#!forum/sciruby-dev">Discussion group</a></li>
27
+ <li><a href="https://shekharrajak.github.io/daru-view/CONTRIBUTING.md">Contributing</a></li>
28
+ </ul>
29
+ </div>
30
+ </body>
31
+ </html>
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE HTML>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Googlecharts examples</title>
6
+ <link rel="stylesheet" href="/stylesheet.css">
7
+
8
+ <!-- you don't need to keep this, but it's cool for stats! -->
9
+ <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>">
10
+ <%= googlecharts_dependent_js %>
11
+ </head>
12
+ <body>
13
+ <div id="main">
14
+ <%= yield %>
15
+
16
+ </div>
17
+ <div id="sidebar">
18
+ <h2>Documentation</h2>
19
+ <ul>
20
+ <li><a href="https://shekharrajak.github.io/daru-view/">Documentation</a></li>
21
+ <li><a href="http://nbviewer.jupyter.org/github/shekharrajak/daru-view/tree/master/spec/dummy_iruby/">Tutorial</a></li>
22
+ </ul>
23
+ <h2>Community</h2>
24
+ <ul>
25
+ <li><a href="https://groups.google.com/forum/#!forum/sciruby-dev">Discussion group</a></li>
26
+ <li><a href="https://shekharrajak.github.io/daru-view/CONTRIBUTING.md">Contributing</a></li>
27
+ </ul>
28
+ </div>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE HTML>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Highcharts examples</title>
6
+ <link rel="stylesheet" href="/stylesheet.css">
7
+
8
+ <!-- you don't need to keep this, but it's cool for stats! -->
9
+ <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>">
10
+ <%= highcharts_dependent_js %>
11
+ </head>
12
+ <body>
13
+ <div id="main">
14
+ <%= yield %>
15
+
16
+ </div>
17
+ <div id="sidebar">
18
+ <h2>Documentation</h2>
19
+ <ul>
20
+ <li><a href="https://shekharrajak.github.io/daru-view/">Documentation</a></li>
21
+ <li><a href="http://nbviewer.jupyter.org/github/shekharrajak/daru-view/tree/master/spec/dummy_iruby/">Tutorial</a></li>
22
+ </ul>
23
+ <h2>Community</h2>
24
+ <ul>
25
+ <li><a href="https://groups.google.com/forum/#!forum/sciruby-dev">Discussion group</a></li>
26
+ <li><a href="https://shekharrajak.github.io/daru-view/CONTRIBUTING.md">Contributing</a></li>
27
+ </ul>
28
+ </div>
29
+ </body>
30
+ </html>