Skip to main content

SecondaryAxisYCollection Class

Represents a collection that stores secondary Y-axes of a particular XYDiagram2D.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v23.1.dll

NuGet Package: DevExpress.Wpf.Charts


public class SecondaryAxisYCollection :

The following members return SecondaryAxisYCollection objects:


Apart from the primary Y-axis, a 2D XY-Diagram can have an unlimited number of secondary Y-axes. They reside in the collection represented by the SecondaryAxisYCollection class, which can be accessed via the XYDiagram2D.SecondaryAxesY property. Each collection item is represented by a SecondaryAxisY2D object.

The collection of secondary X-axes is represented by the SecondaryAxisXCollection 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