Beispiel #1
0
        protected virtual ChartData.StripLine[] GetStripLines(long studentUSI, int metricId, int metricVariantId, int schoolId, string format)
        {
            var metricInstanceSetKey = _metricInstanceSetKeyResolver.GetMetricInstanceSetKey(StudentSchoolMetricInstanceSetRequest.Create(schoolId, studentUSI, metricVariantId));
            var metricGoal           = _metricGoalProvider.GetMetricGoal(metricInstanceSetKey, metricId);

            if (metricGoal == null || metricGoal.Value == null)
            {
                return(new ChartData.StripLine[0]);
            }
            //If we have a goal then add a StripLine.
            var stripLine = new ChartData.StripLine
            {
                Value = Convert.ToDouble(metricGoal.Value),
                IsNegativeThreshold = metricGoal.Interpretation == TrendInterpretation.Inverse
            };

            return(new[] { stripLine });
        }