Skip to end of metadata
Go to start of metadata

An axis that displays numeric values.

Definition

public abstract class NumericAxis : RangeAxis

Summary

The following table summarizes the members exposed in this class.

Protected Constructors

NumericAxis Constructor() Instantiates a new instance of the NumericAxis class.

Public Properties

ActualMaximum Gets the actual maximum value plotted on the chart.
ActualMinimum Gets the actual maximum value plotted on the chart.
ExtendRangeToOrigin Gets or sets a value indicating whether to always show the origin.
Maximum Gets or sets the maximum value plotted on the axis.
Minimum Gets or sets the minimum value to plot on the axis.

Protected Properties

Origin Gets the origin value on the axis.

Fields

ActualMaximumProperty Identifies the ActualMaximum dependency property.
ActualMinimumProperty Identifies the ActualMinimum dependency property.
ExtendRangeToOriginProperty Identifies the ExtendRangeToOrigin dependency property.
MaximumProperty Identifies the Maximum dependency property.
MinimumProperty Identifies the Minimum dependency property.

Public Methods

CanPlot(object) Returns a value indicating whether a value can plot.

Protected Methods

CreateAxisLabel() Returns a numeric axis label.
OnActualRangeChanged(Range<IComparable>) Updates the typed actual maximum and minimum properties when the actual range changes.
OnExtendRangeToOriginPropertyChanged(bool, bool) ExtendRangeToOriginProperty property changed handler.
OnMaximumPropertyChanged(Nullable<double>) MaximumProperty property changed handler.
OnMinimumPropertyChanged(Nullable<double>) MinimumProperty property changed handler.
OverrideDataRange(Range<IComparable>) Overrides the data value range and returns a range that takes the margins of the values into account.

Protected Constructors

protected NumericAxis()

Instantiates a new instance of the NumericAxis class.

Public Properties

public Nullable<double> ActualMaximum { get; }

Gets the actual maximum value plotted on the chart.

public Nullable<double> ActualMinimum { get; }

Gets the actual maximum value plotted on the chart.

public bool ExtendRangeToOrigin { get; set; }

Gets or sets a value indicating whether to always show the origin.

public Nullable<double> Maximum { get; set; }

Gets or sets the maximum value plotted on the axis.

public Nullable<double> Minimum { get; set; }

Gets or sets the minimum value to plot on the axis.

Protected Properties

protected IComparable Origin { get; }

Gets the origin value on the axis.

Fields

public static readonly DependencyProperty ActualMaximumProperty

Identifies the ActualMaximum dependency property.

public static readonly DependencyProperty ActualMinimumProperty

Identifies the ActualMinimum dependency property.

public static readonly DependencyProperty ExtendRangeToOriginProperty

Identifies the ExtendRangeToOrigin dependency property.

public static readonly DependencyProperty MaximumProperty

Identifies the Maximum dependency property.

public static readonly DependencyProperty MinimumProperty

Identifies the Minimum dependency property.

Public Methods

public bool CanPlot(object value)

Returns a value indicating whether a value can plot.

Parameters

value The value to plot.

Return Types

A value indicating whether a value can plot.

Protected Methods

protected Control CreateAxisLabel()

Returns a numeric axis label.

Return Types

A numeric axis label.

protected void OnActualRangeChanged(Range<IComparable> range)

Updates the typed actual maximum and minimum properties when the actual range changes.

Parameters

range The actual range.

protected void OnExtendRangeToOriginPropertyChanged(bool oldValue, bool newValue)

ExtendRangeToOriginProperty property changed handler.

Parameters

oldValue Old value.
newValue New value.

protected void OnMaximumPropertyChanged(Nullable<double> newValue)

MaximumProperty property changed handler.

Parameters

newValue New value.

protected void OnMinimumPropertyChanged(Nullable<double> newValue)

MinimumProperty property changed handler.

Parameters

newValue New value.

protected Range<IComparable> OverrideDataRange(Range<IComparable> range)

Overrides the data value range and returns a range that takes the margins of the values into account.

Parameters

range The range of data values.

Return Types

A range that can store both the data values and their margins.
  • No labels