daru-view 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +4 -0
- data/.rubocop.yml +122 -0
- data/.simplecov +3 -0
- data/.travis.yml +18 -0
- data/CHANGELOG.md +21 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +53 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +287 -0
- data/Rakefile +22 -0
- data/_config.yml +1 -0
- data/daru-view.gemspec +52 -0
- data/lib/assets/.keep +0 -0
- data/lib/daru/view.rb +127 -0
- data/lib/daru/view/adapters/datatables.rb +90 -0
- data/lib/daru/view/adapters/googlecharts.rb +180 -0
- data/lib/daru/view/adapters/googlecharts/data_table_iruby.rb +86 -0
- data/lib/daru/view/adapters/googlecharts/display.rb +54 -0
- data/lib/daru/view/adapters/googlecharts/iruby_notebook.rb +15 -0
- data/lib/daru/view/adapters/highcharts.rb +114 -0
- data/lib/daru/view/adapters/highcharts/core_ext/string.rb +10 -0
- data/lib/daru/view/adapters/highcharts/display.rb +58 -0
- data/lib/daru/view/adapters/highcharts/iruby_notebook.rb +29 -0
- data/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb +76 -0
- data/lib/daru/view/adapters/js/googlecharts_js/google_visualr.js +44 -0
- data/lib/daru/view/adapters/js/googlecharts_js/loader.js +226 -0
- data/lib/daru/view/adapters/js/highcharts_js/adapters/mootools-adapter.js +13 -0
- data/lib/daru/view/adapters/js/highcharts_js/adapters/prototype-adapter.js +15 -0
- data/lib/daru/view/adapters/js/highcharts_js/highcharts-3d.js +74 -0
- data/lib/daru/view/adapters/js/highcharts_js/highcharts-more.js +64 -0
- data/lib/daru/view/adapters/js/highcharts_js/highcharts.js +399 -0
- data/lib/daru/view/adapters/js/highcharts_js/highstock.js +519 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/accessibility.js +48 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/annotations.js +14 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/boost.js +51 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/broken-axis.js +15 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/canvas-tools.js +133 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/data.js +26 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/drilldown.js +25 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/exporting.js +27 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/funnel.js +13 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/heatmap.js +25 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/no-data-to-display.js +12 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/offline-exporting.js +19 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/solid-gauge.js +14 -0
- data/lib/daru/view/adapters/js/highcharts_js/modules/treemap.js +31 -0
- data/lib/daru/view/adapters/js/highcharts_js/stock/adapters/mootools-adapter.js +13 -0
- data/lib/daru/view/adapters/js/highcharts_js/stock/adapters/prototype-adapter.js +15 -0
- data/lib/daru/view/adapters/js/highcharts_js/stock/highcharts-more.js +64 -0
- data/lib/daru/view/adapters/js/highcharts_js/stock/modules/exporting.js +27 -0
- data/lib/daru/view/adapters/js/highcharts_js/stock/modules/funnel.js +13 -0
- data/lib/daru/view/adapters/js/nyaplot_js/d3-downloadable.js +129 -0
- data/lib/daru/view/adapters/js/nyaplot_js/d3.min.js +5 -0
- data/lib/daru/view/adapters/js/nyaplot_js/nyaplot.js +5294 -0
- data/lib/daru/view/adapters/nyaplot.rb +62 -0
- data/lib/daru/view/adapters/nyaplot/display.rb +9 -0
- data/lib/daru/view/adapters/nyaplot/iruby_notebook.rb +22 -0
- data/lib/daru/view/app/rails/helpers/view_helper.rb +26 -0
- data/lib/daru/view/app/rails/railtie.rb +15 -0
- data/lib/daru/view/plot.rb +106 -0
- data/lib/daru/view/table.rb +99 -0
- data/lib/daru/view/templates/googlecharts/chart_div.erb +4 -0
- data/lib/daru/view/templates/googlecharts/init.inline.js.erb +16 -0
- data/lib/daru/view/templates/highcharts/init.inline.js.erb +16 -0
- data/lib/daru/view/templates/highcharts/static_html.erb +7 -0
- data/lib/daru/view/templates/nyaplot/init.inline.js.erb +16 -0
- data/lib/daru/view/templates/nyaplot/init_script.erb +3 -0
- data/lib/daru/view/version.rb +5 -0
- data/lib/tasks/.keep +0 -0
- data/lib/tasks/google_charts.rake +25 -0
- data/lib/tasks/high_charts.rake +60 -0
- data/lib/tasks/nyaplot.rake +25 -0
- data/spec/adapters/datatables_spec.rb +21 -0
- data/spec/adapters/googlecharts_spec.rb +34 -0
- data/spec/adapters/highcharts_spec.rb +177 -0
- data/spec/adapters/nyaplot_spec.rb +447 -0
- data/spec/app/rails/helpers/view_helpers_spec.rb +35 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Daru DataFrame and DataTables-checkpoint.ipynb +16091 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb +6 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Line Chart-checkpoint.ipynb +1389 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb +606 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb +1404 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb +866 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb +607 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb +478 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb +1182 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb +6 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb +6 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb +699 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb +1523 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb +650 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb +477 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb +1881 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb +6 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb +791 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb +1570 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb +1792 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Area chart-checkpoint.ipynb +1272 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - Bar Chart-checkpoint.ipynb +877 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts - column charts-checkpoint.ipynb +1587 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/HighCharts- Pie charts-checkpoint.ipynb +1126 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Combinations -checkpoint.ipynb +925 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - Daynamic charts-checkpoint.ipynb +839 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs-checkpoint.ipynb +1297 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - line graphs2-checkpoint.ipynb +879 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts - scatter -bubble charts-checkpoint.ipynb +1071 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts examples-checkpoint.ipynb +1165 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb +1383 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot other examples-checkpoint.ipynb +6 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot testing -checkpoint.ipynb +270 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame | from daru examples-checkpoint.ipynb +1716 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/Pie Chart using HighCharts2-checkpoint.ipynb +784 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/highcharts - Use HTML table (generated from daru) as data source-checkpoint.ipynb +956 -0
- data/spec/dummy_iruby/.ipynb_checkpoints/spec_testing-checkpoint.ipynb +1433 -0
- data/spec/dummy_iruby/Daru DataFrame and DataTables.ipynb +16091 -0
- data/spec/dummy_iruby/DataTables | basic examples.ipynb +15587 -0
- data/spec/dummy_iruby/Gemfile +33 -0
- data/spec/dummy_iruby/Google Chart | Line Chart.ipynb +1389 -0
- data/spec/dummy_iruby/Google Chart | Area Chart.ipynb +606 -0
- data/spec/dummy_iruby/Google Chart | Bar Chart.ipynb +1394 -0
- data/spec/dummy_iruby/Google Chart | Bubble Chart.ipynb +866 -0
- data/spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb +607 -0
- data/spec/dummy_iruby/Google Chart | Combo Chart.ipynb +478 -0
- data/spec/dummy_iruby/Google Chart | Histogram.ipynb +1182 -0
- data/spec/dummy_iruby/Google Chart | Org Chart.ipynb +474 -0
- data/spec/dummy_iruby/Google Chart | Pie Chart.ipynb +1177 -0
- data/spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb +699 -0
- data/spec/dummy_iruby/Google Chart | Timeline.ipynb +1523 -0
- data/spec/dummy_iruby/Google Chart | Treemap.ipynb +659 -0
- data/spec/dummy_iruby/Google Chart | gauge.ipynb +477 -0
- data/spec/dummy_iruby/Google Charts | Basics.ipynb +1882 -0
- data/spec/dummy_iruby/Google Charts | Column Charts.ipynb +1138 -0
- data/spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb +791 -0
- data/spec/dummy_iruby/Google Charts | Scatter Chart.ipynb +1570 -0
- data/spec/dummy_iruby/GoolgeChart | Datatables.ipynb +1801 -0
- data/spec/dummy_iruby/HighCharts - Area chart.ipynb +1272 -0
- data/spec/dummy_iruby/HighCharts - Bar Chart.ipynb +877 -0
- data/spec/dummy_iruby/HighCharts - column charts.ipynb +1587 -0
- data/spec/dummy_iruby/HighCharts- Pie charts.ipynb +1197 -0
- data/spec/dummy_iruby/Highcharts - Combinations .ipynb +925 -0
- data/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb +839 -0
- data/spec/dummy_iruby/Highcharts - line graphs.ipynb +1297 -0
- data/spec/dummy_iruby/Highcharts - line graphs2.ipynb +879 -0
- data/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb +1071 -0
- data/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb +1228 -0
- data/spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb +1390 -0
- data/spec/dummy_iruby/Nyaplot other examples.ipynb +589 -0
- data/spec/dummy_iruby/Nyaplot testing .ipynb +270 -0
- data/spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame | from daru examples.ipynb +1716 -0
- data/spec/dummy_iruby/Pie Chart using HighCharts2.ipynb +784 -0
- data/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb +951 -0
- data/spec/dummy_iruby/spec_testing.ipynb +1433 -0
- data/spec/dummy_nanoc/Gemfile +12 -0
- data/spec/dummy_nanoc/README.md +40 -0
- data/spec/dummy_nanoc/Rules +90 -0
- data/spec/dummy_nanoc/content/googlecharts/index.html +29 -0
- data/spec/dummy_nanoc/content/highcharts/index.html +42 -0
- data/spec/dummy_nanoc/content/index.html +26 -0
- data/spec/dummy_nanoc/content/nyaplot/index.html +9 -0
- data/spec/dummy_nanoc/content/stylesheet.css +101 -0
- data/spec/dummy_nanoc/layouts/default.html +31 -0
- data/spec/dummy_nanoc/layouts/googlecharts_layout.html +30 -0
- data/spec/dummy_nanoc/layouts/highcharts_layout.html +30 -0
- data/spec/dummy_nanoc/layouts/nyaplot_layout.html +30 -0
- data/spec/dummy_nanoc/lib/default.rb +300 -0
- data/spec/dummy_nanoc/nanoc.yaml +90 -0
- data/spec/dummy_nanoc/output/googlecharts/index.html +390 -0
- data/spec/dummy_nanoc/output/highcharts/index.html +1153 -0
- data/spec/dummy_nanoc/output/index.html +87 -0
- data/spec/dummy_nanoc/output/nyaplot/index.html +135 -0
- data/spec/dummy_nanoc/output/stylesheet.css +101 -0
- data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/checksums +0 -0
- data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/compiled_content +2229 -0
- data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/dependencies +5 -0
- data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/outdatedness +0 -0
- data/spec/dummy_nanoc/tmp/nanoc/1029d67644815/rule_memory +0 -0
- data/spec/dummy_sinatra/Gemfile +9 -0
- data/spec/dummy_sinatra/README.md +15 -0
- data/spec/dummy_sinatra/app.rb +143 -0
- data/spec/dummy_sinatra/config.ru +0 -0
- data/spec/dummy_sinatra/views/googlecharts.erb +31 -0
- data/spec/dummy_sinatra/views/googlecharts_layout.erb +12 -0
- data/spec/dummy_sinatra/views/highcharts.erb +15 -0
- data/spec/dummy_sinatra/views/highcharts_layout.erb +12 -0
- data/spec/dummy_sinatra/views/index.erb +2 -0
- data/spec/dummy_sinatra/views/layout.erb +26 -0
- data/spec/dummy_sinatra/views/nyaplot.erb +13 -0
- data/spec/dummy_sinatra/views/nyaplot_layout.erb +14 -0
- data/spec/plot_spec.rb +86 -0
- data/spec/spec_helper.rb +11 -0
- 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,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>
|