     
     internal override func calcMinMax()
     {
+        if (_autoScaleMinMaxEnabled)
+        {
+            _data.calcMinMax(start: lowestVisibleXIndex, end: highestVisibleXIndex);
+        }
+        
         var minLeft = _data.getYMin(.Left);
         var maxLeft = _data.getYMax(.Left);
         var minRight = _data.getYMin(.Right);

    {
        return _leftAxis.isInverted || _rightAxis.isInverted;
    }
}

/// Default formatter that calculates the position of the filled line.


    /// Zooms in or out by the given scale factor. x and y are the coordinates
    /// (in pixels) of the zoom center.
    ///
    /// :param: scaleX if < 1f --> zoom out, if > 1f --> zoom in
    /// :param: scaleY if < 1f --> zoom out, if > 1f --> zoom in
    /// :param: x
