- Timestamp:
- 04/26/10 16:43:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
r3524 r3536 34 34 using HeuristicLab.Core; 35 35 using HeuristicLab.Data; 36 using System.Threading; 36 37 37 38 namespace HeuristicLab.Optimization.Views { … … 178 179 foreach (IRun run in this.Content) 179 180 this.AddDataPoint(run); 181 //Thread.Sleep(100); 180 182 } 181 183 } … … 397 399 Axis xAxis = this.chart.ChartAreas[0].AxisX; 398 400 Axis yAxis = this.chart.ChartAreas[0].AxisY; 399 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex); 400 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex); 401 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 402 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 403 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 401 404 } 402 405 private void SetCustomAxisLabels(Axis axis, int dimension) { … … 405 408 CustomLabel label = null; 406 409 foreach (var pair in categoricalMapping[dimension]) { 407 label = axis.CustomLabels.Add(pair.Value - 0.5, pair.Value + 0.5, pair.Key.ToString()); 410 string labelText = pair.Key.ToString(); 411 if(labelText.Length > 25) 412 labelText = labelText.Substring(0,25) + " ... "; 413 label = axis.CustomLabels.Add(pair.Value - 0.5, pair.Value + 0.5, labelText); 408 414 label.GridTicks = GridTickTypes.TickMark; 409 415 }
Note: See TracChangeset
for help on using the changeset viewer.