Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/17/17 13:22:51 (7 years ago)
Author:
pfleck
Message:

#2709

  • Added Legend order when grouping for histogram and (single and multi)scatterplot.
  • Removed the limitation of distinct values for the singlescatterplot (for the color gradient).
  • Added a legend-visible checkbox for the multi-scatterplot.
File:
1 edited

Legend:

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

    r14725 r14993  
    2828  [Content(typeof(HistogramContent), true)]
    2929  public partial class HistogramView : PreprocessingChartView {
     30
    3031    public new HistogramContent Content {
    3132      get { return (HistogramContent)base.Content; }
     
    3738      aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));
    3839      aggregationComboBox.SelectedItem = DataRowVisualProperties.DataRowHistogramAggregation.Overlapping;
     40      orderComboBox.DataSource = Enum.GetValues(typeof(PreprocessingChartContent.LegendOrder));
     41      orderComboBox.SelectedItem = PreprocessingChartContent.LegendOrder.Appearance;
    3942    }
    4043
     
    5558    protected override DataTable CreateDataTable(string variableName) {
    5659      var aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem;
    57       return HistogramContent.CreateHistogram(Content.PreprocessingData, variableName, Content.GroupingVariableName, aggregation);
     60      return HistogramContent.CreateHistogram(Content.PreprocessingData, variableName, Content.GroupingVariableName, aggregation, Content.Order);
    5861    }
    5962
     
    7376      }
    7477    }
     78
     79    private void orderComboBox_SelectedIndexChanged(object sender, EventArgs e) {
     80      Content.Order = (PreprocessingChartContent.LegendOrder)orderComboBox.SelectedItem;
     81
     82      // rebuild datatables
     83      InitData();
     84      GenerateLayout();
     85    }
    7586  }
    7687}
Note: See TracChangeset for help on using the changeset viewer.