mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08: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
33 lines
629 B
Ruby
33 lines
629 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Analyze
|
|
module Graph
|
|
class StudentsAndTeachers
|
|
include Analyze::Graph::Column
|
|
|
|
def to_s
|
|
"Students & Teachers"
|
|
end
|
|
|
|
def slug
|
|
"students-and-teachers"
|
|
end
|
|
|
|
def columns
|
|
[AllStudent.new, AllTeacher.new, AllSurveyData.new]
|
|
end
|
|
|
|
def source
|
|
Analyze::Source::SurveyData.new(slices: [slice], graph: self)
|
|
end
|
|
|
|
def slice
|
|
Analyze::Slice::StudentsAndTeachers.new(graph: self)
|
|
end
|
|
|
|
def group
|
|
Analyze::Group::Base.new(name: nil, slug: nil, graph: nil)
|
|
end
|
|
end
|
|
end
|
|
end
|