From 4f2e779dd0848438ac49b9edce77a0f066a22f0e Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Thu, 7 Dec 2017 17:30:26 -0500 Subject: [PATCH] trying to fix histogram --- app/views/shared/_histogram.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_histogram.html.haml b/app/views/shared/_histogram.html.haml index 0b6e7615..0f745f35 100644 --- a/app/views/shared/_histogram.html.haml +++ b/app/views/shared/_histogram.html.haml @@ -3,7 +3,7 @@ %tbody - data.question.options_with_reverse.each_with_index do |option, index| %tr.answer - - group = histogram[index.to_s] + - group = histogram[(index + 1).to_s] - width = (100 * (group.blank? ? 0 : group.length)) / histogram.values.flatten.length %td.text = "#{option}:"