Changeset 14531


Ignore:
Timestamp:
12/26/16 08:44:31 (3 years ago)
Author:
gkronber
Message:

#2718: hide 'All Values' series in residuals line chart

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartViewBase.cs

    r14486 r14531  
    253253    }
    254254
    255     private void ToggleSeriesData(Series series) {
     255    public void ToggleSeriesData(Series series) {
    256256      if (series.Points.Count > 0) {  //checks if series is shown
    257257        if (this.chart.Series.Any(s => s != series && s.Points.Count > 0)) {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionResidualsLineChartView.cs

    r14486 r14531  
    4343    }
    4444
    45     private void CalcResiduals(int[] idx, double[] x) {
     45    protected void CalcResiduals(int[] idx, double[] x) {
    4646      var problemData = Content.ProblemData;
    4747      var target = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, idx).ToArray();
     
    8888        base.chart.Series[RegressionSolutionLineChartView.ESTIMATEDVALUES_ALL_SERIES_NAME].ChartType = SeriesChartType.RangeColumn;
    8989        base.chart.Series[RegressionSolutionLineChartView.ESTIMATEDVALUES_ALL_SERIES_NAME].Points.DataBindXY(idx, res.Select(_ => 0.0).ToArray(), res);
     90        ToggleSeriesData(base.chart.Series[RegressionSolutionLineChartView.ESTIMATEDVALUES_ALL_SERIES_NAME]); // don't show by default
    9091      }
    9192    }
Note: See TracChangeset for help on using the changeset viewer.