graphgraph 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/graphgraph-0.7.0.gem +0 -0
- data/lib/generators/templates/controllers/graphgraphs_controller.rb +36 -36
- data/lib/graphgraph/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 622c6382f2b2b7cb1e00b72473f413410f07f4e8
|
4
|
+
data.tar.gz: 17495114880d6f801c7215f413fd7d391a4cef4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab5a026c6ec6adf6b572e00ff9b1fb34b1ca9018d8f9a8b66b6141cca041081d7ef54683c77a504caa7ff6f1c6a0ae57ec1cb16c1923bbb44653bbf06e15c7b
|
7
|
+
data.tar.gz: 2f5dd73044fb0d8f6200c84bde175195af74a8065939a52ee0f04f5103020410ed14e288a21e57fa7ca64920f0c96c197aafd15fbda5448b69c89fb98d33b5c5
|
Binary file
|
@@ -218,24 +218,24 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
|
|
218
218
|
|
219
219
|
def set_user_template
|
220
220
|
current_model_path=<%= @scope.capitalize %>.to_s.downcase + "s"
|
221
|
-
@foruserencode=
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
221
|
+
@foruserencode="<%= form_tag(\"/#{current_model_path}/graphgraph\", method: \"get\") do %>
|
222
|
+
<input type=\"text\" name=\"graphtype\" id=\"graphtype\" value=\"#{params[:graphtype]}\" hidden>
|
223
|
+
<input type=\"text\" name=\"yaxis\" id=\"yaxis\" value=\"#{params[:yaxis]}\" hidden>
|
224
|
+
<input type=\"text\" name=\"xaxis\" id=\"xaxis\" value=\"#{params[:xaxis]}\" hidden>
|
225
|
+
<input type=\"text\" name=\"fromuser\" id=\"fromuser\" value=\"fromuser\" hidden>
|
226
|
+
|
227
|
+
<div class='col-sm-2' id=\"datepickerforxview\" hidden>
|
228
|
+
<input type='text' name=\"xstart\" class=\"form-control\" id='datetimepicker1view' />
|
229
229
|
to
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
230
|
+
<input type='text' name=\"xend\" class=\"form-control\" id='datetimepicker2view' /></br>
|
231
|
+
<input type=\"radio\" name=\"rangetypex\" value=\"minute\"> per Minute<br>
|
232
|
+
<input type=\"radio\" name=\"rangetypex\" value=\"hourly\" checked> Hourly<br>
|
233
|
+
<input type=\"radio\" name=\"rangetypex\" value=\"daily\"> Daily<br>
|
234
|
+
<input type=\"radio\" name=\"rangetypex\" value=\"monthly\"> Monthly<br>
|
235
|
+
</div>
|
236
|
+
<%= submit_tag 'Generate Graph', :id=>\"submitselection\"%>
|
237
|
+
<% end %>
|
238
|
+
<script>
|
239
239
|
$(function () {
|
240
240
|
$('#datetimepicker1view').datetimepicker();
|
241
241
|
$('#datetimepicker2view').datetimepicker({
|
@@ -254,25 +254,25 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
|
|
254
254
|
else
|
255
255
|
document.getElementById('datepickerforxview').style.display= \"none\";
|
256
256
|
});
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
257
|
+
</script>
|
258
|
+
<% if params[:options]!=nil %>
|
259
|
+
<% newchart=LazyHighCharts::HighChart.new() %>
|
260
|
+
<% newchart.options=eval(params[:options]) %>
|
261
|
+
<% newchart.placeholder=params[:placeholder] %>
|
262
|
+
<% newchart.series_data=eval(params[:series_data]) %>
|
263
|
+
<% if (\"#{params[:graphtype]}\"==\"Bar Graph\") %>
|
264
|
+
<%= high_chart(\"my_bar_div\", newchart) %>
|
265
|
+
<% end %>
|
266
|
+
<% if (\"#{params[:graphtype]}\"==\"Line Graph\") %>
|
267
|
+
<%= high_chart(\"my_line_div\", newchart) %>
|
268
|
+
<% end %>
|
269
|
+
<% if (\"#{params[:graphtype]}\"==\"Area Graph\") %>
|
270
|
+
<%= high_chart(\"my_area_div\", newchart) %>
|
271
|
+
<% end %>
|
272
|
+
<% if (\"#{params[:graphtype]}\"==\"Scatter Graph\") %>
|
273
|
+
<%= high_chart(\"my_scatter_div\", newchart) %>
|
274
|
+
<% end %>
|
275
|
+
<% end %>"
|
276
276
|
# @foruser=CGI.unescapeHTML(@foruserencode) comment out after install
|
277
277
|
end
|
278
278
|
|
data/lib/graphgraph/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphgraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suhas Shrestha
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- graphgraph-0.4.0.gem
|
175
175
|
- graphgraph-0.5.0.gem
|
176
176
|
- graphgraph-0.6.0.gem
|
177
|
+
- graphgraph-0.7.0.gem
|
177
178
|
- graphgraph.gemspec
|
178
179
|
- lib/generators/graphgraph/controllers_generator.rb
|
179
180
|
- lib/generators/graphgraph/install_generator.rb
|