mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
ECP-125 feat: update selector to say 'Student Race' instead of just 'Race'. Also make sure that the default selection is 'Language' instead of 'Student Race'
This commit is contained in:
parent
5b00454a1b
commit
7ebe8234cb
2 changed files with 11 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ module Analyze
|
|||
end
|
||||
|
||||
def group
|
||||
Analyze::Group::Base.new(name: "Race", slug: "race", graph: self)
|
||||
Analyze::Group::Base.new(name: "Student Race", slug: "student-race", graph: self)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -152,6 +152,9 @@ module Analyze
|
|||
end
|
||||
end
|
||||
|
||||
# The last item will per slice type will be selected as the default slice
|
||||
# parents-by-language is last of the parents-by-group slice so it will be picked by default when the 'parents-by-group' slice is selected
|
||||
# students-by-ell is the last of the students-by-group slice so it will be selected by default
|
||||
def measure_level_graphs
|
||||
@measure_level_graphs ||= { "all-data" => Analyze::Graph::AllData.new,
|
||||
"students-and-teachers" => Analyze::Graph::StudentsAndTeachers.new,
|
||||
|
|
@ -162,10 +165,13 @@ module Analyze
|
|||
"students-by-income" => Analyze::Graph::StudentsByIncome.new(incomes: selected_incomes),
|
||||
"students-by-sped" => Analyze::Graph::StudentsBySped.new(speds: selected_speds),
|
||||
"students-by-ell" => Analyze::Graph::StudentsByEll.new(ells: selected_ells),
|
||||
"parents-by-language" => Analyze::Graph::ParentsByLanguage.new,
|
||||
"parents-by-race" => Analyze::Graph::ParentsByRace.new }
|
||||
"parents-by-race" => Analyze::Graph::ParentsByRace.new,
|
||||
"parents-by-language" => Analyze::Graph::ParentsByLanguage.new }
|
||||
end
|
||||
|
||||
# The last item will per slice type will be selected as the default slice
|
||||
# parents-by-language is last of the parents-by-group slice so it will be picked by default when the 'parents-by-group' slice is selected
|
||||
# students-by-ell is the last of the students-by-group slice so it will be selected by default
|
||||
def scale_level_graphs
|
||||
@scale_level_graphs ||= { "all-data" => nil,
|
||||
"students-and-teachers" => nil,
|
||||
|
|
@ -176,8 +182,8 @@ module Analyze
|
|||
"students-by-income" => nil,
|
||||
"students-by-sped" => nil,
|
||||
"students-by-ell" => nil,
|
||||
"parents-by-language" => Analyze::Graph::ParentsByLanguage.new,
|
||||
"parents-by-race" => Analyze::Graph::ParentsByRace.new }
|
||||
"parents-by-race" => Analyze::Graph::ParentsByRace.new,
|
||||
"parents-by-language" => Analyze::Graph::ParentsByLanguage.new }
|
||||
end
|
||||
|
||||
def graphs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue