|
|
|
@ -1,6 +1,6 @@
|
|
|
|
<g class="grouped-bar-column" data-for-measure-id="<%= column.measure.measure_id %>">
|
|
|
|
<g class="grouped-bar-column" data-for-measure-id="<%= column.measure.measure_id %>">
|
|
|
|
<% score_label_y = [5, 10, 15, 5, 10, 15 ] %>
|
|
|
|
<% score_label_y = [5, 10, 15, 5, 10, 15 ] %>
|
|
|
|
<% column.bars.each_with_index do |bar, index| %>
|
|
|
|
<% column.bars.each_with_index do |bar, index| %>
|
|
|
|
<rect
|
|
|
|
<rect
|
|
|
|
<% if column.show_popover? %>
|
|
|
|
<% if column.show_popover? %>
|
|
|
|
data-bs-toggle="popover"
|
|
|
|
data-bs-toggle="popover"
|
|
|
|
@ -22,11 +22,11 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<line x1="<%= column.column_start_x %>%" y1="0" x2="<%= column.column_start_x %>%" y2="85%" stroke="grey" stroke-width="1" stroke-dasharray="5,2" />
|
|
|
|
<line x1="<%= column.column_start_x %>%" y1="0" x2="<%= column.column_start_x %>%" y2="85%" stroke="grey" stroke-width="1" stroke-dasharray="5,2" />
|
|
|
|
<% words = column.label %>
|
|
|
|
<% words = column.label %>
|
|
|
|
<% words.each_with_index do | line, index | %>
|
|
|
|
<% words.each_with_index do | line, index | %>
|
|
|
|
<text class="graph-footer" x="<%= column.column_midpoint %>%" y="<%= column.bar_label_height + (index * 5) %>%" text-anchor="middle" dominant-baseline="middle" data-grouped-bar-label="<%= column.label %>">
|
|
|
|
<text class="graph-footer" x="<%= column.column_midpoint %>%" y="<%= column.bar_label_height + (index * 5) %>%" text-anchor="middle" dominant-baseline="middle" data-grouped-bar-label="<%= column.label %>">
|
|
|
|
<%= line %>
|
|
|
|
<%= line %>
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if column.show_irrelevancy_message? %>
|
|
|
|
<% if column.show_irrelevancy_message? %>
|
|
|
|
<rect x="<%= column.message_x %>%" y="<%= column.message_y %>%" rx="15" ry="15" width="<%= column.message_width %>%" height="<%= column.message_height %>%" fill="white" stroke="gray" />
|
|
|
|
<rect x="<%= column.message_x %>%" y="<%= column.message_y %>%" rx="15" ry="15" width="<%= column.message_width %>%" height="<%= column.message_height %>%" fill="white" stroke="gray" />
|
|
|
|
|