mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 23:48:17 -07:00
Refactor graphs to take new slice format Add Students and Teachers and Parents graph. Add selector for that graph
31 lines
519 B
Ruby
31 lines
519 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Analyze
|
|
module Graph
|
|
class AllParent
|
|
def initialize(scales:)
|
|
@scales = scales
|
|
end
|
|
|
|
def to_s
|
|
"All Data"
|
|
end
|
|
|
|
def slug
|
|
"all-data"
|
|
end
|
|
|
|
def source
|
|
Analyze::Source::AllData.new(slices: [slice], graph: self)
|
|
end
|
|
|
|
def slice
|
|
Analyze::Slice::AllData.new(graph: self)
|
|
end
|
|
|
|
def group
|
|
Analyze::Group::Base.new(name: nil, slug: nil, graph: nil)
|
|
end
|
|
end
|
|
end
|
|
end
|