C# Class WinRTXamlToolkit.Controls.DataVisualization.Charting.LinearAxis

Inheritance: NumericAxis
Show file Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
ActualIntervalProperty Windows.UI.Xaml.DependencyProperty
IntervalProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
LinearAxis ( ) : System

Instantiates a new instance of the LinearAxis class.

Protected Methods

Method Description
CalculateActualInterval ( Size availableSize ) : double

Returns the actual interval to use to determine which values are displayed in the axis.

GetLabelValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to plot on the axis.

GetMajorTickMarkValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to create major tick marks for.

GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a value.

GetPlotAreaCoordinate ( object value, double length ) : UnitValue

Returns the plot area coordinate of a value.

GetValueAtPosition ( UnitValue value ) : IComparable

Returns the value range given a plot area coordinate.

OnActualRangeChanged ( Range range ) : void

Updates ActualDoubleRange when ActualRange changes.

OverrideDataRange ( Range range ) : Range

Overrides the actual range to ensure that it is never set to an empty range.

Private Methods

Method Description
AlignToInterval ( double value, double interval ) : double

Aligns a value to the provided interval value. The aligned value should always be smaller than or equal to than the provided value.

GetMajorValues ( Size availableSize ) : IEnumerable

Returns a sequence of major axis values.

GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a value.

LengthToRange ( double midPoint, double length ) : Range

Function that uses the mid point of all the data values in the value margins to convert a length into a range of data with the mid point as the center of that range.

OnIntervalPropertyChanged ( ) : void

IntervalProperty property changed handler.

OnIntervalPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IntervalProperty property changed handler.

Method Details

CalculateActualInterval() protected method

Returns the actual interval to use to determine which values are displayed in the axis.
protected CalculateActualInterval ( Size availableSize ) : double
availableSize Windows.Foundation.Size The available size.
return double

GetLabelValues() protected method

Returns a sequence of values to plot on the axis.
protected GetLabelValues ( Size availableSize ) : IEnumerable
availableSize Windows.Foundation.Size The available size.
return IEnumerable

GetMajorTickMarkValues() protected method

Returns a sequence of values to create major tick marks for.
protected GetMajorTickMarkValues ( Size availableSize ) : IEnumerable
availableSize Windows.Foundation.Size The available size.
return IEnumerable

GetPlotAreaCoordinate() protected method

Returns the plot area coordinate of a value.
protected GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue
value object The value to plot.
currentRange Range The range of values.
length double The length of axis.
return UnitValue

GetPlotAreaCoordinate() protected method

Returns the plot area coordinate of a value.
protected GetPlotAreaCoordinate ( object value, double length ) : UnitValue
value object The value to plot.
length double The length of axis.
return UnitValue

GetValueAtPosition() protected method

Returns the value range given a plot area coordinate.
protected GetValueAtPosition ( UnitValue value ) : IComparable
value UnitValue The plot area position.
return IComparable

LinearAxis() public method

Instantiates a new instance of the LinearAxis class.
public LinearAxis ( ) : System
return System

OnActualRangeChanged() protected method

Updates ActualDoubleRange when ActualRange changes.
protected OnActualRangeChanged ( Range range ) : void
range Range New ActualRange value.
return void

OverrideDataRange() protected method

Overrides the actual range to ensure that it is never set to an empty range.
protected OverrideDataRange ( Range range ) : Range
range Range The range to override.
return Range

Property Details

ActualIntervalProperty public static property

Identifies the ActualInterval dependency property.
public static DependencyProperty,Windows.UI.Xaml ActualIntervalProperty
return Windows.UI.Xaml.DependencyProperty

IntervalProperty public static property

Identifies the Interval dependency property.
public static DependencyProperty,Windows.UI.Xaml IntervalProperty
return Windows.UI.Xaml.DependencyProperty