- Timestamp:
- 06/19/17 16:56:34 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/HistogramContent.cs
r14993 r15036 55 55 56 56 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 }; 58 60 59 61 if (string.IsNullOrEmpty(groupingVariableName)) { 60 62 var row = PreprocessingChartContent.CreateDataRow(preprocessingData, variableName, DataRowVisualProperties.DataRowChartType.Histogram); 63 row.VisualProperties.IsVisibleInLegend = false; 61 64 dataTable.Rows.Add(row); 62 65 return dataTable; 63 66 } 64 65 dataTable.VisualProperties.Title = variableName;66 67 67 68 int variableIndex = preprocessingData.GetColumnIndex(variableName); … … 88 89 VisualProperties = { 89 90 ChartType = DataRowVisualProperties.DataRowChartType.Histogram, 90 Aggregation = aggregation 91 Aggregation = aggregation, 92 IsVisibleInLegend = !string.IsNullOrEmpty(groupingVariableName) 91 93 } 92 94 };
Note: See TracChangeset
for help on using the changeset viewer.