Changeset 15090
- Timestamp:
- 06/29/17 15:18:12 (7 years ago)
- Location:
- branches/DataPreprocessing Enhancements
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
r15027 r15090 36 36 public HistogramView() { 37 37 InitializeComponent(); 38 aggregationComboBox.DataSource = Enum.GetValues(typeof(Data RowVisualProperties.DataRowHistogramAggregation));39 aggregationComboBox.SelectedItem = Data RowVisualProperties.DataRowHistogramAggregation.Overlapping;38 aggregationComboBox.DataSource = Enum.GetValues(typeof(DataTableVisualProperties.DataTableHistogramAggregation)); 39 aggregationComboBox.SelectedItem = DataTableVisualProperties.DataTableHistogramAggregation.Overlapping; 40 40 orderComboBox.DataSource = Enum.GetValues(typeof(PreprocessingChartContent.LegendOrder)); 41 41 orderComboBox.SelectedItem = PreprocessingChartContent.LegendOrder.Appearance; … … 57 57 58 58 protected override DataTable CreateDataTable(string variableName) { 59 var aggregation = (Data RowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem;59 var aggregation = (DataTableVisualProperties.DataTableHistogramAggregation)aggregationComboBox.SelectedItem; 60 60 var hist = HistogramContent.CreateHistogram(Content.PreprocessingData, variableName, Content.GroupingVariableName, aggregation, Content.Order); 61 61 hist.VisualProperties.TitleFont = new Font(DefaultFont.FontFamily, 10, FontStyle.Bold); … … 73 73 private void aggregationComboBox_SelectedIndexChanged(object sender, EventArgs e) { 74 74 foreach (var dt in dataTables.Values) { 75 foreach (var row in dt.Rows) { 76 row.VisualProperties.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem; 77 } 75 dt.VisualProperties.HistogramAggregation = (DataTableVisualProperties.DataTableHistogramAggregation)aggregationComboBox.SelectedItem; 78 76 } 79 77 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
r15043 r15090 31 31 using HeuristicLab.MainForm; 32 32 using HeuristicLab.MainForm.WindowsForms; 33 using AggregationType = HeuristicLab.Analysis.Data RowVisualProperties.DataRowHistogramAggregation;33 using AggregationType = HeuristicLab.Analysis.DataTableVisualProperties.DataTableHistogramAggregation; 34 34 using RegressionType = HeuristicLab.Analysis.ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType; 35 35 … … 736 736 } 737 737 738 var histogramControl = control.Value as DataTableView; 739 if (histogramControl != null) { 740 foreach (var row in histogramControl.Content.Rows) { 741 row.VisualProperties.Aggregation = aggregation; 742 } 738 var histogramView = control.Value as DataTableView; 739 if (histogramView != null) { 740 histogramView.Content.VisualProperties.HistogramAggregation = aggregation; 743 741 } 744 742 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/HistogramContent.cs
r15036 r15090 54 54 } 55 55 56 public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, Data RowVisualProperties.DataRowHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Appearance) {56 public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataTableVisualProperties.DataTableHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Appearance) { 57 57 var dataTable = new DataTable { 58 VisualProperties = { Title = variableName }58 VisualProperties = { Title = variableName, HistogramAggregation = aggregation }, 59 59 }; 60 60 … … 89 89 VisualProperties = { 90 90 ChartType = DataRowVisualProperties.DataRowChartType.Histogram, 91 Aggregation = aggregation,92 91 IsVisibleInLegend = !string.IsNullOrEmpty(groupingVariableName) 93 92 }
Note: See TracChangeset
for help on using the changeset viewer.