Changeset 5348 for trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
- Timestamp:
- 01/21/11 12:59:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
r5330 r5348 231 231 this.AddDataPoint(run); 232 232 233 ////check to correct max bubble size234 //if (this.chart.Series[0].Points.Select(p => p.YValues[1]).Distinct().Count() == 1)235 // this.chart.Series[0]["BubbleMaxSize"] = "2";236 //else237 // this.chart.Series[0]["BubbleMaxSize"] = "7";238 239 233 if (this.chart.Series[0].Points.Count == 0) 240 234 noRunsLabel.Visible = true; … … 252 246 double maxSizeValue = sizeValues.Max(); 253 247 254 if (maxSizeValue - minSizeValue < double.Epsilon) return;255 256 248 for (int i = 0; i < sizeValues.Length; i++) { 257 249 DataPoint point = this.chart.Series[0].Points[i]; 258 double relativeSize = (point.YValues[1] - minSizeValue) / (maxSizeValue - minSizeValue); 250 double sizeRange = maxSizeValue - minSizeValue; 251 double relativeSize = (point.YValues[1] - minSizeValue); 252 253 if (sizeRange > double.Epsilon) relativeSize /= sizeRange; 254 else relativeSize = 1; 255 259 256 point.MarkerSize = (int)Math.Round((sizeTrackBar.Value - sizeTrackBar.Minimum) * relativeSize + sizeTrackBar.Minimum); 260 257 } 261 262 258 } 263 259
Note: See TracChangeset
for help on using the changeset viewer.