The input range, expecting a VisibleRange
The axis being operated on
CalculateRelativeRange Method
When overriden in a derived class, calculates an output SciChart.Data.Model.IRange to apply to the associated Axis, given the input parameters.
Syntax
protected virtual DoubleRange CalculateRelativeRange( 
   IRange fromRange,
   IAxis axis
)

Parameters

fromRange
The input range, expecting a VisibleRange
axis
The axis being operated on

Return Value

The output SciChart.Data.Model.IRange which can then be applied to the SciChart.Charting.Visuals.Axes.AxisCore.GrowBy property to get the same affect as applying the input visible-range
Remarks
A Relative-Range is defined as one that affects the SciChart.Charting.Visuals.Axes.AxisCore.GrowBy, not the SciChart.Charting.Visuals.Axes.AxisCore.VisibleRange. This is used in cases where the YAxis or XAxis has SciChart.Charting.Visuals.Axes.AxisCore.AutoRange set to Always, and you still want to be able to drag the axis to set a constant, relative margin of spacing around the upper and lower bounds of the data
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also