private void GetChartSettingsLinkVolumes(List <double> xInputList, List <double> yInputList) { string XAxisLabel = "Iteration Number"; string YAxisLabel = "Link Volume"; double XAxisInterval = 5; double XAxisMinValue = 1; double XAxisMaxValue = myResults[tpIndex].NumIterations; double YAxisInterval = 0; double YAxisMinValue = 0; double YAxisMaxValue = 0; YAxisMinValue = Math.Round(BasicStatsCalculations.GetMinimum(yInputList)); YAxisMaxValue = Math.Round(BasicStatsCalculations.GetMaximum(yInputList)); YAxisInterval = Math.Round(YAxisMaxValue / 10, 0); if (YAxisMinValue == YAxisMaxValue) { YAxisMinValue = 0; YAxisInterval = YAxisMaxValue; } if (YAxisInterval == 0) { YAxisInterval = YAxisMaxValue - YAxisMinValue; } myChartSettings = new SwashStatistics_ChartingControl.ChartSettings(XAxisInterval, XAxisInterval, XAxisMinValue, XAxisMaxValue, YAxisInterval, YAxisInterval, YAxisMinValue, YAxisMaxValue, XAxisLabel, YAxisLabel, true, false); }
private void GetChartSettingsObjValues(List <double> xInputList, List <double> yInputList) { string XAxisLabel = "Iteration Number"; string YAxisLabel = "Total Link Travel Time"; double XAxisInterval = 5; double XAxisMinValue = 1; double XAxisMaxValue = myResults[tpIndex].NumIterations; double YAxisInterval = 0; double YAxisMinValue = 0; double YAxisMaxValue = 0; YAxisMinValue = BasicStatsCalculations.GetMinimum(yInputList); YAxisMaxValue = BasicStatsCalculations.GetMaximum(yInputList); YAxisInterval = Math.Round(YAxisMaxValue / 10, 2); myChartSettings = new SwashStatistics_ChartingControl.ChartSettings(XAxisInterval, XAxisInterval, XAxisMinValue, XAxisMaxValue, YAxisInterval, YAxisInterval, YAxisMinValue, YAxisMaxValue, XAxisLabel, YAxisLabel, true, false); }