Changeset 10877 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/PreprocessingDataTableView.cs
- Timestamp:
- 05/21/14 13:42:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/PreprocessingDataTableView.cs
r10871 r10877 30 30 using HeuristicLab.DataPreprocessing.Implementations; 31 31 using HeuristicLab.MainForm; 32 33 namespace HeuristicLab.Analysis.Views 32 using HeuristicLab.Analysis; 33 using HeuristicLab.Analysis.Views; 34 35 namespace HeuristicLab.DataPreprocessing.Views 34 36 { 35 37 [View("Preprocessing DataTable View")] … … 150 152 dialog.ShowDialog(this); 151 153 } 152 154 } 153 155 else MessageBox.Show("Nothing to configure."); 154 156 } … … 166 168 if (classification == null) 167 169 { 168 169 170 chart.Series.Add(series); 171 } 170 172 } 171 173 … … 182 184 // add dummy series for selction entry in legend 183 185 if (rows.Count() > 0 && chart.Series.FindByName("(Selection)") == null) { 184 185 186 187 188 189 190 191 192 193 194 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) { 195 197 row.VisualProperties.IsVisibleInLegend = false; 196 198 row.VisualProperties.Color = Color.Green; … … 201 203 202 204 if (classification == null) { 203 204 205 206 205 chart.Series.Add(series); 206 } 207 } 208 } 207 209 } 208 210 … … 212 214 if (rows.Count() > 0 && rows.ElementAt(0).VisualProperties.ChartType == DataRowVisualProperties.DataRowChartType.Line) 213 215 { 214 215 216 217 218 219 220 221 222 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 } 225 227 } 226 228 … … 755 757 else 756 758 { 757 759 series.Points.Clear(); 758 760 ConfigureSeries(series, row); 759 761 AddPointsToHistogramSeries(series, row, null);
Note: See TracChangeset
for help on using the changeset viewer.