Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/16/15 14:36:10 (9 years ago)
Author:
ascheibe
Message:

#2354 show label when no data is displayed and don't show the legend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs

    r12173 r12458  
    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) {
     
    172173      }
    173174
     175      if (chart.Series.Any()) {
     176        noDataLabel.Visible = false;
     177      } else {
     178        noDataLabel.Visible = true;
     179      }
     180
    174181      ChartArea chartArea = chart.ChartAreas[0];
    175182      // don't show grid lines for second y-axis
Note: See TracChangeset for help on using the changeset viewer.