Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/17 15:45:31 (7 years ago)
Author:
pfleck
Message:

#2709 Fixed some small issues and some default behavior.

Location:
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/HistogramContent.cs

    r15110 r15210  
    5454    }
    5555
    56     public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataTableVisualProperties.DataTableHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Appearance) {
     56    public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataTableVisualProperties.DataTableHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Alphabetically) {
    5757      var dataTable = new DataTable {
    5858        VisualProperties = { Title = variableName, HistogramAggregation = aggregation },
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/PreprocessingChartContent.cs

    r15110 r15210  
    3434  public class PreprocessingChartContent : Item, IViewShortcut {
    3535    public enum LegendOrder {
    36       Appearance,
    37       Alphabetically
     36      Alphabetically,
     37      Appearance
    3838    }
    3939
     
    9191    }
    9292
    93     private const int MAX_DISTINCT_VALUES_FOR_GROUPING = 20;
    94     public static IEnumerable<string> GetVariableNamesForGrouping(IPreprocessingData preprocessingData) {
     93    public static IEnumerable<string> GetVariableNamesForGrouping(IPreprocessingData preprocessingData, int maxDistinctValues = 20) {
    9594      var variableNames = new List<string>();
    9695
     
    104103          distinctValues = preprocessingData.GetValues<DateTime>(i).GroupBy(x => x).Count();
    105104
    106         if (distinctValues <= MAX_DISTINCT_VALUES_FOR_GROUPING)
     105        if (distinctValues <= maxDistinctValues)
    107106          variableNames.Add(preprocessingData.GetVariableName(i));
    108107      }
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs

    r15110 r15210  
    4040    }
    4141
    42     public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.Appearance) {
     42    public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.Alphabetically) {
    4343      ScatterPlot scatterPlot = new ScatterPlot();
    4444
Note: See TracChangeset for help on using the changeset viewer.