This commit is contained in:
Nicolas Bally 2012-08-18 18:56:09 +02:00
parent 48fddf745c
commit 822c11f4c0

View File

@ -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+')'
));
}); });