private Series<BloxPlotSeriesData> GenerateBoxPlotChartSeries(GraphData evaResultsGraphData) { //CaptiveView var captiveViewSeriesData = new BloxPlotSeriesData { low = evaResultsGraphData.CaptiveView[0], q1 = evaResultsGraphData.CaptiveView[1], median = evaResultsGraphData.CaptiveView[2], q3 = evaResultsGraphData.CaptiveView[3], high = evaResultsGraphData.CaptiveView[4], Color = "#C111A0" }; //ParentView var parentViewSeriesData = new BloxPlotSeriesData { low = evaResultsGraphData.ParentView[0], q1 = evaResultsGraphData.ParentView[1], median = evaResultsGraphData.ParentView[2], q3 = evaResultsGraphData.ParentView[3], high = evaResultsGraphData.ParentView[4], Color = "#FFB81C" }; var Result = new Series<BloxPlotSeriesData> { data = new List<BloxPlotSeriesData> { captiveViewSeriesData, parentViewSeriesData } }; var MoreData = evaResultsGraphData.ReturnMoreData(); if (MoreData != null) { Result.data.Add(MoreData); } return Result; }
/// <summary> /// Adds more data if the first argument can provide it. /// </summary> /// <param name="evaResultsGraphData"></param> /// <param name="Result"></param> /// <returns></returns> private static Series <BloxPlotSeriesData> AddMoreData(GraphData evaResultsGraphData, Series <BloxPlotSeriesData> Result) { var MoreData = evaResultsGraphData.ReturnMoreData(); if (MoreData != null) { Result.Data.Add(MoreData); } return(Result); }