|
|
|
@ -3,7 +3,7 @@
|
|
|
|
%tbody
|
|
|
|
%tbody
|
|
|
|
- data.question.options_with_reverse.each_with_index do |option, index|
|
|
|
|
- data.question.options_with_reverse.each_with_index do |option, index|
|
|
|
|
%tr.answer
|
|
|
|
%tr.answer
|
|
|
|
- group = histogram[index.to_s]
|
|
|
|
- group = histogram[(index + 1).to_s]
|
|
|
|
- width = (100 * (group.blank? ? 0 : group.length)) / histogram.values.flatten.length
|
|
|
|
- width = (100 * (group.blank? ? 0 : group.length)) / histogram.values.flatten.length
|
|
|
|
%td.text
|
|
|
|
%td.text
|
|
|
|
= "#{option}:"
|
|
|
|
= "#{option}:"
|
|
|
|
|