Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/14 13:42:43 (10 years ago)
Author:
psteiner
Message:

Filters stored in Content
Preparation DataCompletenessChart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/PreprocessingDataTableView.cs

    r10871 r10877  
    3030using HeuristicLab.DataPreprocessing.Implementations;
    3131using HeuristicLab.MainForm;
    32 
    33 namespace HeuristicLab.Analysis.Views
     32using HeuristicLab.Analysis;
     33using HeuristicLab.Analysis.Views;
     34
     35namespace HeuristicLab.DataPreprocessing.Views
    3436{
    3537  [View("Preprocessing DataTable View")]
     
    150152          dialog.ShowDialog(this);
    151153        }
    152       }
     154    }
    153155      else MessageBox.Show("Nothing to configure.");
    154156    }
     
    166168        if (classification == null)
    167169        {
    168           chart.Series.Add(series);
    169         }
     170        chart.Series.Add(series);
     171      }
    170172      }
    171173
     
    182184        // add dummy series for selction entry in legend
    183185        if (rows.Count() > 0 && chart.Series.FindByName("(Selection)") == null) {
    184           Series series = new Series("(Selection)");
    185           series.IsVisibleInLegend = true;
    186           series.Color = Color.Green;
    187           series.BorderWidth = 1;
    188           series.BorderDashStyle = ChartDashStyle.Solid;
    189           series.BorderColor = Color.Empty;
    190           series.ChartType = SeriesChartType.FastLine;
    191           chart.Series.Add(series);
    192         }
    193 
    194         foreach (var row in rows) {
     186        Series series = new Series("(Selection)");
     187        series.IsVisibleInLegend = true;
     188        series.Color = Color.Green;
     189        series.BorderWidth = 1;
     190        series.BorderDashStyle = ChartDashStyle.Solid;
     191        series.BorderColor = Color.Empty;
     192        series.ChartType = SeriesChartType.FastLine;
     193        chart.Series.Add(series);
     194      }
     195
     196      foreach (var row in rows) {
    195197          row.VisualProperties.IsVisibleInLegend = false;
    196198          row.VisualProperties.Color = Color.Green;
     
    201203
    202204          if (classification == null) {
    203             chart.Series.Add(series);
    204           }
    205         }
    206       }
     205          chart.Series.Add(series);
     206        }
     207      }
     208    }
    207209    }
    208210
     
    212214      if (rows.Count() > 0 && rows.ElementAt(0).VisualProperties.ChartType == DataRowVisualProperties.DataRowChartType.Line)
    213215      {
    214         //remove selection entry in legend
    215         if (Content.SelectedRows.Count == 0) {
    216           Series series = chart.Series["(Selection)"];
    217           chart.Series.Remove(series);
    218         }
    219 
    220         foreach (var row in rows) {
    221           Series series = chart.Series[row.Name + "(Selected)"];
    222           chart.Series.Remove(series);
    223         }
    224       }
     216      //remove selection entry in legend
     217      if (Content.SelectedRows.Count == 0) {
     218        Series series = chart.Series["(Selection)"];
     219        chart.Series.Remove(series);
     220      }
     221
     222      foreach (var row in rows) {
     223        Series series = chart.Series[row.Name + "(Selected)"];
     224        chart.Series.Remove(series);
     225      }
     226    }
    225227    }
    226228
     
    755757      else
    756758      {
    757         series.Points.Clear();
     759      series.Points.Clear();
    758760        ConfigureSeries(series, row);
    759761        AddPointsToHistogramSeries(series, row, null);
Note: See TracChangeset for help on using the changeset viewer.