mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
WIP: refactor so multiple graphs can be defined for a given slug WIP: fixed scale view but broke 'All Parent' graph WIP: working state. All views working properly WIP: Refactor graph_map into two collections; measure_level_graphs and scale_level_graphs WIP: refacter GroupedBarColumnPresenter to accept a 'construct' instead of specifying measure or scale WIP: fix scale graphs being shown on incorrect view WIP: Merge parents_by_language class with parents_by_language_by_scale so it can handle display of both measure-level and scale-level graphs
9 lines
511 B
Text
9 lines
511 B
Text
<svg width="100%" height="<%= svg_height %>">
|
|
<%= render partial: "graph_background", locals: {background: @background} %>
|
|
|
|
<% number_of_columns = columns.length %>
|
|
<% columns.each_with_index do |config, index| %>
|
|
<% p = Analyze::Graph::Column::GroupedBarColumnPresenter.new(construct:, school: @school, academic_years: @presenter.selected_academic_years, position: index , number_of_columns:, config: config) %>
|
|
<%= render partial: "grouped_bar_column", locals: {column: p} %>
|
|
<% end %>
|
|
</svg>
|