Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/13 12:30:18 (11 years ago)
Author:
pfleck
Message:

#2030
Switched Text encoding to Mtom encoding for better performance for binary data.
Merged trunk into branch.

Location:
branches/HivePerformance/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources

  • branches/HivePerformance/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs

    r9312 r9444  
    328328      if (!this.categoricalMapping.ContainsKey(dimension)) {
    329329        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());
    333332        int count = 1;
    334333        foreach (var category in orderedCategories) {
     
    389388      axis.CustomLabels.Clear();
    390389      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))) {
    392392          string labelText = pair.Key.ToString();
    393393          CustomLabel label = new CustomLabel();
     
    397397          label.Text = labelText;
    398398          label.GridTicks = GridTickTypes.TickMark;
    399           label.FromPosition = pair.Value - 0.5;
    400           label.ToPosition = pair.Value + 0.5;
     399          label.FromPosition = position - 0.5;
     400          label.ToPosition = position + 0.5;
    401401          axis.CustomLabels.Add(label);
     402          position++;
    402403        }
    403404      } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
Note: See TracChangeset for help on using the changeset viewer.