You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/presenters/analyze/graph/column/multiracial.rb

38 lines
922 B

# frozen_string_literal: true
module Analyze
module Graph
module Column
class Multiracial < GroupedBarColumnPresenter
include Analyze::Graph::Column::RaceScore
def label
# TODO: offset labels so they don't overlap
'Multiracial'
end
def basis
'student'
end
def show_irrelevancy_message?
!measure.includes_student_survey_items?
end
def show_insufficient_data_message?
# TODO: implement this logic. Resize messages so they are bound to their column
false
end
def score(year_index)
# TODO: make sure the score calculation bubble up instead of just average
race_score(measure:, school:, academic_year: academic_years[year_index], race:)
end
def race
Race.find_by_qualtrics_code 100
end
end
end
end
end