<% score_label_y = [5, 10, 15, 5, 10, 15 ] %>
<% column.bars.each_with_index do |bar, index| %>
<<<<<<< HEAD
<% if ENV["SCORES"].present? && ENV["SCORES"].upcase == "SHOW" %>
<%= bar.average %>
=======
<% if column.sufficient_data?(index) %>
data-bs-toggle="popover"
data-bs-placement="right"
data-bs-content="<%= column.popover_content(index) %>"
<% end %>
data-for-academic-year="<%= bar.academic_year.range %>"
x="<%= bar.x_position %>%"
y="<%= bar.y_offset %>%"
width="<%= column.bar_width %>%"
height="<%= bar.bar_height_percentage %>%"
fill="<%= bar.color %>" />
<% if ENV["SCORES"].present? && ENV["SCORES"].upcase == "SHOW" %>
<%= bar.average %>
<% end %>
>>>>>>> 67e469a6 (feat: add popover to analyze graphs that displays the n-size of the different columns. Make sure to only calculate a score for a race if there are more than 10 respondents to a question.)
<% end %>
<% end %>
<% words = column.label.split("\s") %>
<% words.each_with_index do | line, index | %>
<% end %>
<% if column.show_irrelevancy_message? %>
measure not
based on
<%= column.basis %>
<% elsif column.show_insufficient_data_message? %>
<% column.insufficiency_message.each_with_index do |line, index| %>
<% offset = 29 + index * 5 %>
<%= line %>
<% end %>
<% end %>