Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/16 16:16:20 (8 years ago)
Author:
pfleck
Message:

#2698 Only input and target variables are pre-checked for linechart, histrogram and scatterplot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingCheckedVariablesView.cs

    r14384 r14418  
    5656
    5757      if (Content.VariableItemList == null) {
    58         Content.VariableItemList = Content.CreateVariableItemList();
     58        IList<string> inputs = Content.PreprocessingData.InputVariables;
     59        if (Content.PreprocessingData.TargetVariable != null)
     60          inputs = inputs.Union(new[] {Content.PreprocessingData.TargetVariable}).ToList();
     61        Content.VariableItemList = Content.CreateVariableItemList(inputs);
    5962      } else {
    6063        var checkedNames = Content.VariableItemList.CheckedItems.Select(x => x.Value.Value);
    61         Content.VariableItemList = Content.CreateVariableItemList(checkedNames);
     64        Content.VariableItemList = Content.CreateVariableItemList(checkedNames.ToList());
    6265      }
    6366      Content.VariableItemList.CheckedItemsChanged += CheckedItemsChanged;
Note: See TracChangeset for help on using the changeset viewer.