Changeset 14473 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4
- Timestamp:
- 12/09/16 17:04:08 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/LineChartView.cs
r14459 r14473 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.MainForm; 30 using HeuristicLab.Visualization.ChartControlsExtensions; 30 31 31 32 namespace HeuristicLab.DataPreprocessing.Views { … … 79 80 protected override DataTable CreateDataTable(string variableName) { 80 81 var dt = new DataTable(); 81 dt.Rows.Add(Content.CreateDataRow(variableName, DataRowVisualProperties.DataRowChartType.Line)); 82 var row = Content.CreateDataRow(variableName, DataRowVisualProperties.DataRowChartType.Line); 83 dt.Rows.Add(row); 84 85 try { 86 double axisMin, axisMax, axisInterval; 87 ChartUtil.CalculateOptimalAxisInterval(row.Values.Min(), row.Values.Max(), out axisMin, out axisMax, out axisInterval); 88 dt.VisualProperties.YAxisMinimumAuto = false; 89 dt.VisualProperties.YAxisMaximumAuto = false; 90 dt.VisualProperties.YAxisMinimumFixedValue = axisMin; 91 dt.VisualProperties.YAxisMaximumFixedValue = axisMax; 92 } catch (ArgumentOutOfRangeException) { } // missing values lead to NaNs 82 93 return dt; 83 94 }
Note: See TracChangeset
for help on using the changeset viewer.