Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/17 13:44:34 (7 years ago)
Author:
pfleck
Message:

#2709

  • Added histogram aggregation option.
  • Show all columns in data grid per default.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs

    r14581 r14583  
    3636    public HistogramView() {
    3737      InitializeComponent();
     38      aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));
     39      aggregationComboBox.SelectedItem = DataRowVisualProperties.DataRowHistogramAggregation.Overlapping;
    3840    }
    3941
     
    8284        classRow.Name = group.Key;
    8385        classRow.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram;
     86        classRow.VisualProperties.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem;
    8487        classRow.Values.AddRange(group);
    8588        dataTable.Rows.Add(classRow);
     
    9699      GenerateLayout();
    97100    }
     101
     102    private void aggregationComboBox_SelectedIndexChanged(object sender, EventArgs e) {
     103      foreach (var dt in dataTables.Values) {
     104        foreach (var row in dt.Rows) {
     105          row.VisualProperties.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem;
     106        }
     107      }
     108    }
    98109  }
    99110}
Note: See TracChangeset for help on using the changeset viewer.