/// <summary> /// Get Minimum value for X and Radius Y2 ( used for bubble chart ) /// </summary> /// <param name="area">Chart Area</param> /// <param name="series">Series IDs</param> /// <returns>Minimum X value</returns> internal double GetMinXWithRadiusValue(ChartArea area, params string[] series) { double returnValue = Double.MaxValue; foreach (string seriesName in series) { foreach (DataPoint seriesPoint in this._series[seriesName].Points) { // The empty point if (IsPointSkipped(seriesPoint)) { continue; } if (!double.IsNaN(seriesPoint.XValue)) { if (seriesPoint.YValues.Length > 1) { returnValue = Math.Min(returnValue, seriesPoint.XValue - BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], false)); } else { returnValue = Math.Min(returnValue, seriesPoint.XValue); } } } } return(returnValue); }
public double GetMinYWithRadiusValue(ChartArea area, params string[] series) { double num = 1.7976931348623157E+308; foreach (string parameter in series) { foreach (DataPoint point in this.series[parameter].Points) { if (!this.IsPointSkipped(point) && !double.IsNaN(point.YValues[0])) { num = ((point.YValues.Length <= 1) ? Math.Min(num, point.YValues[0]) : Math.Min(num, point.YValues[0] - BubbleChart.AxisScaleBubbleSize(area.Common.graph, area.Common, area, point.YValues[1], true))); } } } return(num); }
public double GetMaxXWithRadiusValue(ChartArea area, params string[] series) { double num = -1.7976931348623157E+308; foreach (string parameter in series) { foreach (DataPoint point in this.series[parameter].Points) { if (!point.EmptyX && (!this.series[parameter].EmptyX || point.XValue != 0.0) && !this.IsPointSkipped(point) && !double.IsNaN(point.XValue)) { num = ((point.YValues.Length <= 1) ? Math.Max(num, point.XValue) : Math.Max(num, point.XValue + BubbleChart.AxisScaleBubbleSize(area.Common.graph, area.Common, area, point.XValue, false))); } } } return(num); }
internal double GetMinXWithRadiusValue(ChartArea area, params string[] series) { double num = double.MaxValue; foreach (string parameter in series) { foreach (DataPoint point in this.series[parameter].Points) { if (!point.EmptyX && (!this.series[parameter].EmptyX || point.XValue != 0.0) && !IsPointSkipped(point) && !double.IsNaN(point.XValue)) { num = ((point.YValues.Length <= 1) ? Math.Min(num, point.XValue) : Math.Min(num, point.XValue - BubbleChart.AxisScaleBubbleSize(area.Common.graph, area.Common, area, point.YValues[1], yValue: false))); } } } return(num); }
internal double GetMaxYWithRadiusValue(ChartArea area, params string[] series) { double num = double.MinValue; foreach (string parameter in series) { foreach (DataPoint point in this.series[parameter].Points) { if (!IsPointSkipped(point) && !double.IsNaN(point.YValues[0])) { num = ((point.YValues.Length <= 1) ? Math.Max(num, point.YValues[0]) : Math.Max(num, point.YValues[0] + BubbleChart.AxisScaleBubbleSize(area.Common.graph, area.Common, area, point.YValues[1], yValue: true))); } } } return(num); }