Class LinearAxis
An axis that displays numeric values.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public class LinearAxis : NumericAxis, IRequireSeriesHost, IRangeAxis, IAxis, IRangeConsumer, IValueMarginConsumer
Constructors
| Improve this Doc View SourceLinearAxis()
Instantiates a new instance of the LinearAxis class.
Declaration
public LinearAxis()
Fields
| Improve this Doc View SourceActualIntervalProperty
Identifies the ActualInterval dependency property.
Declaration
public static readonly DependencyProperty ActualIntervalProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IntervalProperty
Identifies the Interval dependency property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualDoubleRange
Gets the actual range of double values.
Declaration
protected Range<double> ActualDoubleRange { get; }
Property Value
Type | Description |
---|---|
Range<System.Double> |
ActualInterval
Gets the actual interval of the axis.
Declaration
public double ActualInterval { get; }
Property Value
Type | Description |
---|---|
System.Double |
Interval
Gets or sets the axis interval.
Declaration
public double? Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Methods
| Improve this Doc View SourceCalculateActualInterval(Size)
Returns the actual interval to use to determine which values are displayed in the axis.
Declaration
protected virtual double CalculateActualInterval(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize | The available size. |
Returns
Type | Description |
---|---|
System.Double | Actual interval to use to determine which values are displayed in the axis. |
GetLabelValues(Size)
Returns a sequence of values to plot on the axis.
Declaration
protected override IEnumerable<IComparable> GetLabelValues(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize | The available size. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.IComparable> | A sequence of values to plot on the axis. |
Overrides
| Improve this Doc View SourceGetMajorTickMarkValues(Size)
Returns a sequence of values to create major tick marks for.
Declaration
protected override IEnumerable<IComparable> GetMajorTickMarkValues(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize | The available size. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.IComparable> | A sequence of values to create major tick marks for. |
Overrides
| Improve this Doc View SourceGetPlotAreaCoordinate(Object, Double)
Returns the plot area coordinate of a value.
Declaration
protected override UnitValue GetPlotAreaCoordinate(object value, double length)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to plot. |
System.Double | length | The length of axis. |
Returns
Type | Description |
---|---|
UnitValue | The plot area coordinate of a value. |
Overrides
| Improve this Doc View SourceGetPlotAreaCoordinate(Object, Range<IComparable>, Double)
Returns the plot area coordinate of a value.
Declaration
protected override UnitValue GetPlotAreaCoordinate(object value, Range<IComparable> currentRange, double length)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to plot. |
Range<System.IComparable> | currentRange | The range of values. |
System.Double | length | The length of axis. |
Returns
Type | Description |
---|---|
UnitValue | The plot area coordinate of a value. |
Overrides
| Improve this Doc View SourceGetValueAtPosition(UnitValue)
Returns the value range given a plot area coordinate.
Declaration
protected override IComparable GetValueAtPosition(UnitValue value)
Parameters
Type | Name | Description |
---|---|---|
UnitValue | value | The plot area position. |
Returns
Type | Description |
---|---|
System.IComparable | The value at that plot area coordinate. |
Overrides
| Improve this Doc View SourceOnActualRangeChanged(Range<IComparable>)
Updates ActualDoubleRange when ActualRange changes.
Declaration
protected override void OnActualRangeChanged(Range<IComparable> range)
Parameters
Type | Name | Description |
---|---|---|
Range<System.IComparable> | range | New ActualRange value. |
Overrides
| Improve this Doc View SourceOverrideDataRange(Range<IComparable>)
Overrides the actual range to ensure that it is never set to an empty range.
Declaration
protected override Range<IComparable> OverrideDataRange(Range<IComparable> range)
Parameters
Type | Name | Description |
---|---|---|
Range<System.IComparable> | range | The range to override. |
Returns
Type | Description |
---|---|
Range<System.IComparable> | Returns the overridden range. |