Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/17 16:56:34 (7 years ago)
Author:
pfleck
Message:

#2709

  • Used title for showing variable name in the histogram instead of the legend. Legend is now used for grouping only.
  • Fixed Variables/Datarows in StatisticsView (were switched).
  • Improved the "Warning Dialog" for the MultiScatterPlot when too many variables might be shown.
    • Option for checking "None".
    • Show the dialog before the charts are calculated internally.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/HistogramContent.cs

    r14993 r15036  
    5555
    5656    public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataRowVisualProperties.DataRowHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Appearance) {
    57       var dataTable = new DataTable();
     57      var dataTable = new DataTable {
     58        VisualProperties = { Title = variableName }
     59      };
    5860
    5961      if (string.IsNullOrEmpty(groupingVariableName)) {
    6062        var row = PreprocessingChartContent.CreateDataRow(preprocessingData, variableName, DataRowVisualProperties.DataRowChartType.Histogram);
     63        row.VisualProperties.IsVisibleInLegend = false;
    6164        dataTable.Rows.Add(row);
    6265        return dataTable;
    6366      }
    64 
    65       dataTable.VisualProperties.Title = variableName;
    6667
    6768      int variableIndex = preprocessingData.GetColumnIndex(variableName);
     
    8889          VisualProperties = {
    8990              ChartType = DataRowVisualProperties.DataRowChartType.Histogram,
    90               Aggregation = aggregation
     91              Aggregation = aggregation,
     92              IsVisibleInLegend = !string.IsNullOrEmpty(groupingVariableName)
    9193            }
    9294        };
Note: See TracChangeset for help on using the changeset viewer.