XYSeries2D.AxisY Property
Specifies the Y-axis (or its View Model) that measures a series.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
Object | An object of an Y-axis’ View Model class or the AxisY2D object. |
Remarks
Refer to the How to: Generate a Chart by its ViewModel to learn how to generate Y-axes by their View Models.
Example
This example demonstrates how to assign a secondary Y-axis to a series and uses the following classes and properties:
Symbol | Description |
---|---|
XYDiagram2D.SecondaryAxesY | Gets the collection of secondary Y-axes. |
SecondaryAxisY2D | Represents the secondary Y-axis within a 2D chart type. |
XYSeries2D.AxisY |
Specifies the Y-axis (or its View Model) that measures a series. |
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-assign-a-secondary-y-axis-to-a-series-t621365.
<dxc:XYDiagram2D.SecondaryAxesY>
<dxc:SecondaryAxisY2D x:Name="percentageAxisY"
Brush="#FFC0504D">
<dxc:SecondaryAxisY2D.WholeRange>
<dxc:Range dxc:AxisY2D.AlwaysShowZeroLevel="False" MinValue="-0.8" MaxValue="0.8"/>
</dxc:SecondaryAxisY2D.WholeRange>
<dxc:SecondaryAxisY2D.NumericScaleOptions>
<dxc:ContinuousNumericScaleOptions AutoGrid="False" GridSpacing="0.4"/>
</dxc:SecondaryAxisY2D.NumericScaleOptions>
</dxc:SecondaryAxisY2D>
</dxc:XYDiagram2D.SecondaryAxesY>
<dxc:LineSeries2D DisplayName="Rate of Change"
ArgumentDataMember="Date" ValueDataMember="ChangeRate"
MarkerVisible="True"
AxisY="{Binding ElementName=percentageAxisY}"/>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AxisY property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.