Changeset 15298 for branches/dataset-ids-2695
- Timestamp:
- 07/29/17 16:07:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dataset-ids-2695/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartViewBase.cs
r15297 r15298 20 20 #endregion 21 21 using System; 22 using System.Collections;23 using System.Collections.Generic;24 22 using System.Drawing; 25 using System.Globalization;26 23 using System.Linq; 27 24 using System.Windows.Forms; 28 25 using System.Windows.Forms.DataVisualization.Charting; 29 using HeuristicLab.Common;30 26 using HeuristicLab.MainForm; 31 27 using HeuristicLab.Visualization.ChartControlsExtensions; … … 80 76 81 77 for (int i = 0; i < ids.Length; i++) { 82 chart.Series[TARGETVARIABLE_SERIES_NAME].Points.Add(new DataPoint() { AxisLabel = ids[i], XValue = i, YValues = new double[] { vals[i] } }); 83 } 84 // this.chart.Series[TARGETVARIABLE_SERIES_NAME].Points.DataBindXY(Content.ProblemData.AllIndices.ToArray(), 85 // Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.TargetVariable).ToArray()); 86 // chart.Series[TARGETVARIABLE_SERIES_NAME].Points.DataBindXY(Content.ProblemData.AllIndices.ToArray(), 87 // "AxisLabel", Content.ProblemData.AllIds.OfType<object>().Select(o => o.ToString()).ToArray(), string.Empty); 88 // training series 78 chart.Series[TARGETVARIABLE_SERIES_NAME].Points.Add(new DataPoint() 79 { 80 AxisLabel = ids[i], XValue = i, YValues = new double[] { vals[i] } 81 }); 82 } 89 83 this.chart.Series.Add(ESTIMATEDVALUES_TRAINING_SERIES_NAME); 90 84 this.chart.Series[ESTIMATEDVALUES_TRAINING_SERIES_NAME].LegendText = ESTIMATEDVALUES_TRAINING_SERIES_NAME;
Note: See TracChangeset
for help on using the changeset viewer.