mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
trying to fix histogram
This commit is contained in:
parent
25feca7690
commit
4f2e779dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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}:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue