Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8339 for trunk


Ignore:
Timestamp:
07/27/12 01:25:01 (12 years ago)
Author:
abeham
Message:

#1903: Fixed handling of maximum x value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r7979 r8339  
    537537      double intervalCenter = intervalWidth / 2;
    538538
    539       double min = 0.0;
     539      double min = 0.0, max = 0.0;
    540540      if (!Double.IsNaN(Content.VisualProperties.XAxisMinimumFixedValue) && !Content.VisualProperties.XAxisMinimumAuto)
    541541        min = Content.VisualProperties.XAxisMinimumFixedValue;
    542542      else min = minValue;
     543      if (!Double.IsNaN(Content.VisualProperties.XAxisMaximumFixedValue) && !Content.VisualProperties.XAxisMaximumAuto)
     544        max = Content.VisualProperties.XAxisMaximumFixedValue;
     545      else max = maxValue + intervalWidth;
    543546
    544547      double axisInterval = intervalWidth / row.VisualProperties.ScaleFactor;
     
    550553
    551554      // get the range or intervals which define the grouping of the frequency values
    552       var doubleRange = DoubleRange(min, maxValue + intervalWidth, intervalWidth).Skip(1).ToList();
     555      var doubleRange = DoubleRange(min, max, intervalWidth).Skip(1).ToList();
    553556
    554557      // aggregate the row values by unique key and frequency value
Note: See TracChangeset for help on using the changeset viewer.