Changeset 5348
- Timestamp:
- 01/21/11 12:59:21 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.Designer.cs
r5336 r5348 315 315 this.sizeTrackBar.TabIndex = 24; 316 316 this.sizeTrackBar.TickStyle = System.Windows.Forms.TickStyle.None; 317 this.sizeTrackBar.Value = 50;317 this.sizeTrackBar.Value = 15; 318 318 this.sizeTrackBar.ValueChanged += new System.EventHandler(this.sizeTrackBar_ValueChanged); 319 319 // -
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.