stagger bar labels

pull/1/head
rebuilt 3 years ago
parent 50b3bc678c
commit 35d650c3a4

@ -15,7 +15,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -15,7 +15,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -14,7 +14,8 @@ module Analyze
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
# !measure.includes_student_survey_items?
false
end
def show_insufficient_data_message?

@ -11,9 +11,12 @@
<% 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" />
<text class="graph-footer" x="<%= column.column_midpoint %>%" y="<%= column.bar_label_height %>%" text-anchor="middle" dominant-baseline="middle" data-grouped-bar-label="<%= column.label %>">
<%= column.label %>
</text>
<% words = column.label.split("\s") %>
<% 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 %>">
<%= line %>
</text>
<% end %>
<% 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" />

Loading…
Cancel
Save