Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/11/15 13:37:32 (9 years ago)
Author:
ascheibe
Message:

#2270 and #2354: merged r12173, r12458, r12077, r12599, r12613, r12112, r12116, r12117, r12131, r12631, r12672, r12684, r12690, r12692 into stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Analysis.Views

  • stable/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs

    r12154 r12725  
    139139        if (!point.Value.Any()) continue;
    140140
    141         Series histogramSeries = new Series(point.Key);
    142         chart.Series.Add(histogramSeries);
    143141        double minValue = point.Value.Min();
    144142        double maxValue = point.Value.Max();
    145143        double intervalWidth = (maxValue - minValue) / bins;
    146144        if (intervalWidth <= 0) continue;
     145
     146        Series histogramSeries = new Series(point.Key);
     147        chart.Series.Add(histogramSeries);
    147148
    148149        if (!exactCheckBox.Checked) {
     
    167168        overallMax = Math.Max(overallMax, maxValue);
    168169        overallMin = Math.Min(overallMin, minValue);
    169       }
    170 
    171       chart.ApplyPaletteColors();
    172 
    173       int i = 0;
    174       foreach (var point in points) {
    175         if (!point.Value.Any()) continue;
    176 
    177         var histogramSeries = chart.Series[i];
     170
     171        chart.ApplyPaletteColors();
    178172        CalculateDensity(histogramSeries, point.Value, bandwith);
    179 
    180         i++;
    181       }
    182 
     173      }
     174
     175      if (chart.Series.Any()) {
     176        noDataLabel.Visible = false;
     177      } else {
     178        noDataLabel.Visible = true;
     179      }
    183180
    184181      ChartArea chartArea = chart.ChartAreas[0];
Note: See TracChangeset for help on using the changeset viewer.