diff --git a/app/views/survey_sets/show.html.haml b/app/views/survey_sets/show.html.haml index 8a2b656..ef2c4f7 100644 --- a/app/views/survey_sets/show.html.haml +++ b/app/views/survey_sets/show.html.haml @@ -142,12 +142,8 @@ %script $(document).ready(function() { - -if item.answers.count > 4 - =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+')' - )); + + =raw 'chartbar("'+r.to_s+'", '+chart_data.to_json+', '+categories.to_s+', "'+item.title+'");' });