graph
This commit is contained in:
parent
48fddf745c
commit
822c11f4c0
@ -142,12 +142,8 @@
|
|||||||
%script
|
%script
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
-if item.answers.count > 4
|
|
||||||
=raw 'chartbar("'+r.to_s+'", '+chart_data.to_json+', '+categories.to_s+', "'+item.title+'");'
|
=raw 'chartbar("'+r.to_s+'", '+chart_data.to_json+', '+categories.to_s+', "'+item.title+'");'
|
||||||
-else
|
|
||||||
charts.push(new Highcharts.Chart(
|
|
||||||
=raw 'getChartConfig("'+r.to_s+'", "'+item.title+'", '+chart_data.to_json+')'
|
|
||||||
));
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user