Changeset 9444 for branches/HivePerformance/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
- Timestamp:
- 05/06/13 12:30:18 (11 years ago)
- Location:
- branches/HivePerformance/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 9376,9379,9388,9390,9396,9402-9410,9413,9417,9426-9429,9432-9433,9435-9439,9441-9443
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r9312 r9444 328 328 if (!this.categoricalMapping.ContainsKey(dimension)) { 329 329 this.categoricalMapping[dimension] = new Dictionary<object, double>(); 330 var orderedCategories = Content.Where(r=> r.Visible).Select(r => Content.GetValue(r, dimension).ToString()) 331 .Distinct() 332 .OrderBy(x => x, new NaturalStringComparer()); 330 var orderedCategories = Content.Where(r => r.Visible && Content.GetValue(r, dimension) != null).Select(r => Content.GetValue(r, dimension).ToString()) 331 .Distinct().OrderBy(x => x, new NaturalStringComparer()); 333 332 int count = 1; 334 333 foreach (var category in orderedCategories) { … … 389 388 axis.CustomLabels.Clear(); 390 389 if (categoricalMapping.ContainsKey(dimension)) { 391 foreach (var pair in categoricalMapping[dimension]) { 390 int position = 1; 391 foreach (var pair in categoricalMapping[dimension].Where(x => seriesCache.ContainsKey(x.Value))) { 392 392 string labelText = pair.Key.ToString(); 393 393 CustomLabel label = new CustomLabel(); … … 397 397 label.Text = labelText; 398 398 label.GridTicks = GridTickTypes.TickMark; 399 label.FromPosition = p air.Value- 0.5;400 label.ToPosition = p air.Value+ 0.5;399 label.FromPosition = position - 0.5; 400 label.ToPosition = position + 0.5; 401 401 axis.CustomLabels.Add(label); 402 position++; 402 403 } 403 404 } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
Note: See TracChangeset
for help on using the changeset viewer.