private static string GetImagePathBasedOnTrend(TrendEvaluation trend) { switch (trend) { case TrendEvaluation.UpBad: case TrendEvaluation.UpGood: case TrendEvaluation.UpNoOpinion: return EdFiWebFormsDashboards.Site.Common.ThemeImage(trendGraphupgrayPng); case TrendEvaluation.NoChangeNoOpinion: return EdFiWebFormsDashboards.Site.Common.ThemeImage(trendGraphsamegrayPng); case TrendEvaluation.DownBad: case TrendEvaluation.DownGood: case TrendEvaluation.DownNoOpinion: return EdFiWebFormsDashboards.Site.Common.ThemeImage(trendGraphdowngrayPng); default: return String.Empty; } }
private static ChartData.Point MapDataToPoint(StudentMetricAssessmentHistorical entry, string valueAsText, TrendEvaluation trend, Func <double, double> valueScaling) { var point = new ChartData.Point { Value = (string.IsNullOrEmpty(entry.Value)) ? 0 : valueScaling(Convert.ToDouble(entry.Value)), ValueAsText = valueAsText, ValueType = entry.ValueTypeName, TooltipHeader = (entry.ToolTipContext ?? string.Empty), Tooltip = (entry.ToolTipSubContext ?? string.Empty), Label = (entry.Context ?? string.Empty), SubLabel = (entry.SubContext ?? string.Empty), State = entry.MetricStateTypeId.HasValue ? (MetricStateType)entry.MetricStateTypeId.Value : MetricStateType.None, Trend = trend, RatioLocation = entry.PerformanceLevelRatio }; return(point); }
private static ChartData.Point MapDataToPoint(StudentMetricAssessmentHistorical entry, string valueAsText, TrendEvaluation trend, Func<double, double> valueScaling) { var point = new ChartData.Point { Value = (string.IsNullOrEmpty(entry.Value)) ? 0 : valueScaling(Convert.ToDouble(entry.Value)), ValueAsText = valueAsText, ValueType = entry.ValueTypeName, TooltipHeader = (entry.ToolTipContext ?? string.Empty), Tooltip = (entry.ToolTipSubContext ?? string.Empty), Label = (entry.Context ?? string.Empty), SubLabel = (entry.SubContext ?? string.Empty), State = entry.MetricStateTypeId.HasValue ? (MetricStateType)entry.MetricStateTypeId.Value : MetricStateType.None, Trend = trend, RatioLocation = entry.PerformanceLevelRatio }; return point; }