Class NumericAxis
An axis that displays numeric values.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public abstract class NumericAxis : RangeAxis, IRequireSeriesHost, IRangeAxis, IAxis, IRangeConsumer, IValueMarginConsumer
Constructors
| Improve this Doc View SourceNumericAxis()
Instantiates a new instance of the NumericAxis class.
Declaration
protected NumericAxis()
Fields
| Improve this Doc View SourceActualMaximumProperty
Identifies the ActualMaximum dependency property.
Declaration
public static readonly DependencyProperty ActualMaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ActualMinimumProperty
Identifies the ActualMinimum dependency property.
Declaration
public static readonly DependencyProperty ActualMinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ExtendRangeToOriginProperty
Identifies the ExtendRangeToOrigin dependency property.
Declaration
public static readonly DependencyProperty ExtendRangeToOriginProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
Identifies the Maximum dependency property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
Identifies the Minimum dependency property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualMaximum
Gets the actual maximum value plotted on the chart.
Declaration
public double? ActualMaximum { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
ActualMinimum
Gets the actual maximum value plotted on the chart.
Declaration
public double? ActualMinimum { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
ExtendRangeToOrigin
Gets or sets a value indicating whether to always show the origin.
Declaration
public bool ExtendRangeToOrigin { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Maximum
Gets or sets the maximum value plotted on the axis.
Declaration
public double? Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Minimum
Gets or sets the minimum value to plot on the axis.
Declaration
public double? Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Origin
Gets the origin value on the axis.
Declaration
protected override IComparable Origin { get; }
Property Value
Type | Description |
---|---|
System.IComparable |
Overrides
Methods
| Improve this Doc View SourceCanPlot(Object)
Returns a value indicating whether a value can plot.
Declaration
public override bool CanPlot(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to plot. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether a value can plot. |
Overrides
| Improve this Doc View SourceCreateAxisLabel()
Returns a numeric axis label.
Declaration
protected override Control CreateAxisLabel()
Returns
Type | Description |
---|---|
Control | A numeric axis label. |
Overrides
| Improve this Doc View SourceOnActualRangeChanged(Range<IComparable>)
Updates the typed actual maximum and minimum properties when the actual range changes.
Declaration
protected override void OnActualRangeChanged(Range<IComparable> range)
Parameters
Type | Name | Description |
---|---|---|
Range<System.IComparable> | range | The actual range. |
Overrides
| Improve this Doc View SourceOnExtendRangeToOriginPropertyChanged(Boolean, Boolean)
ExtendRangeToOriginProperty property changed handler.
Declaration
protected virtual void OnExtendRangeToOriginPropertyChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | Old value. |
System.Boolean | newValue | New value. |
OnMaximumPropertyChanged(Nullable<Double>)
MaximumProperty property changed handler.
Declaration
protected virtual void OnMaximumPropertyChanged(double? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Double> | newValue | New value. |
OnMinimumPropertyChanged(Nullable<Double>)
MinimumProperty property changed handler.
Declaration
protected virtual void OnMinimumPropertyChanged(double? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Double> | newValue | New value. |
OverrideDataRange(Range<IComparable>)
Overrides the data value range and returns a range that takes the margins of the values into account.
Declaration
protected override Range<IComparable> OverrideDataRange(Range<IComparable> range)
Parameters
Type | Name | Description |
---|---|---|
Range<System.IComparable> | range | The range of data values. |
Returns
Type | Description |
---|---|
Range<System.IComparable> | A range that can store both the data values and their margins. |