Class Axis
An axis class used to determine the plot area coordinate of values.
Implements
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public abstract class Axis : Control, IAxis
Constructors
| Improve this Doc View SourceAxis()
Instantiates a new instance of the Axis class.
Declaration
protected Axis()
Fields
| Improve this Doc View SourceLocationProperty
Identifies the Location dependency property.
Declaration
public static readonly DependencyProperty LocationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDependentAxes
Gets the list of child axes belonging to this axis.
Declaration
public ObservableCollection<IAxis> DependentAxes { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<IAxis> |
Location
Gets or sets the axis location.
Declaration
public AxisLocation Location { get; set; }
Property Value
Type | Description |
---|---|
AxisLocation |
Orientation
Gets or sets the orientation of the axis.
Declaration
public AxisOrientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
AxisOrientation |
RegisteredListeners
Gets or the collection of series that are using the Axis.
Declaration
public ObservableCollection<IAxisListener> RegisteredListeners { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<IAxisListener> |
Methods
| Improve this Doc View SourceCanPlot(Object)
Returns a value indicating whether the axis can plot a value.
Declaration
public abstract bool CanPlot(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to plot. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the axis can plot a value. |
GetPlotAreaCoordinate(Object)
The plot area coordinate of a value.
Declaration
public abstract UnitValue GetPlotAreaCoordinate(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value for which to retrieve the plot area coordinate. |
Returns
Type | Description |
---|---|
UnitValue | The plot area coordinate. |
OnDependentAxesCollectionChanged()
Child axes collection changed.
Declaration
protected virtual void OnDependentAxesCollectionChanged()
OnInvalidated(RoutedEventArgs)
Raises the invalidated event.
Declaration
protected virtual void OnInvalidated(RoutedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
RoutedEventArgs | args | Information about the event. |
OnLocationPropertyChanged(AxisLocation, AxisLocation)
LocationProperty property changed handler.
Declaration
protected virtual void OnLocationPropertyChanged(AxisLocation oldValue, AxisLocation newValue)
Parameters
Type | Name | Description |
---|---|---|
AxisLocation | oldValue | Old value. |
AxisLocation | newValue | New value. |
OnObjectRegistered(IAxisListener)
This method is invoked when a series is registered.
Declaration
protected virtual void OnObjectRegistered(IAxisListener series)
Parameters
Type | Name | Description |
---|---|---|
IAxisListener | series | The series that has been registered. |
OnObjectUnregistered(IAxisListener)
This method is invoked when a series is unregistered.
Declaration
protected virtual void OnObjectUnregistered(IAxisListener series)
Parameters
Type | Name | Description |
---|---|---|
IAxisListener | series | The series that has been unregistered. |
OnOrientationPropertyChanged(AxisOrientation, AxisOrientation)
OrientationProperty property changed handler.
Declaration
protected virtual void OnOrientationPropertyChanged(AxisOrientation oldValue, AxisOrientation newValue)
Parameters
Type | Name | Description |
---|---|---|
AxisOrientation | oldValue | Old value. |
AxisOrientation | newValue | New value. |
Events
| Improve this Doc View SourceLocationChanged
This event is raised when the location property is changed.
Declaration
public event RoutedPropertyChangedEventHandler<AxisLocation> LocationChanged
Event Type
Type | Description |
---|---|
RoutedPropertyChangedEventHandler<AxisLocation> |
OrientationChanged
This event is raised when the Orientation property is changed.
Declaration
public event RoutedPropertyChangedEventHandler<AxisOrientation> OrientationChanged
Event Type
Type | Description |
---|---|
RoutedPropertyChangedEventHandler<AxisOrientation> |