public async Task <PieChartModel <int> > ByEnglishLanguageLearnerStatus(EnrollmentFilterModel model) { var groupings = _enrollmentFactService.BaseQuery(model) .GroupBy(x => new EnrollmentGroupByModel { Property = x.Demographic.EnglishLanguageLearnerStatus, SortOrder = x.Demographic.EnglishLanguageLearnerStatus }); return(await _enrollmentFactService.CreateChart(groupings, "English Language Learner Status", "English Language Learner")); }
public async Task <BarChartModel <int> > ByEnglishLanguageLearnerStatus(EnrollmentFilterModel model) { var groupings = _enrollmentFactService.BaseQuery(model) .GroupBy(x => new EnrollmentTrendGroupByModel { SchoolYear = x.SchoolYearKey, SchoolYearDescription = x.SchoolYearDimension.SchoolYearDescription, Property = x.Demographic.EnglishLanguageLearnerStatus, SortOrder = x.Demographic.EnglishLanguageLearnerStatus }); return(await _enrollmentFactService.CreateTrendChart(groupings, "English Language Learner Statuses", "English Language Learner")); }