SecondaryAxisY2D Class

Represents the secondary Y-axis within a 2D chart type.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v21.2.dll


public class SecondaryAxisY2D :

The following members accept/return SecondaryAxisY2D objects:


The SecondaryAxisY2D class represents the secondary axis of values (Y-axis) within a chart control. It inherits properties and methods from its base AxisY2D class, which implements the common X-axes functionality.

The collection of the SecondaryAxisY2D objects is represented by the SecondaryAxisYCollection class, which is returned by the XYDiagram2D.SecondaryAxesY property.

The secondary X-axis is represented by the SecondaryAxisX2D class.

For more information, refer to Primary and Secondary Axes.


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.

View Example

    <dxc:SecondaryAxisY2D x:Name="percentageAxisY" 
            <dxc:Range dxc:AxisY2D.AlwaysShowZeroLevel="False" MinValue="-0.8" MaxValue="0.8"/>
            <dxc:ContinuousNumericScaleOptions AutoGrid="False" GridSpacing="0.4"/>
<dxc:LineSeries2D DisplayName="Rate of Change" 
                  ArgumentDataMember="Date" ValueDataMember="ChangeRate" 
                  AxisY="{Binding ElementName=percentageAxisY}"/>
See Also