Back to Devexpress

XYDiagram2D.SecondaryAxesY Property

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-b9418ef6.md

latest3.1 KB
Original Source

XYDiagram2D.SecondaryAxesY Property

Gets the collection of secondary Y-axes.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public SecondaryAxisYCollection SecondaryAxesY { get; }
vb
Public ReadOnly Property SecondaryAxesY As SecondaryAxisYCollection

Property Value

TypeDescription
SecondaryAxisYCollection

A SecondaryAxisYCollection object representing the collection of secondary Y-axes.

|

Remarks

For more information, refer to the Primary and Secondary Axes guide.

Example

This example demonstrates how to assign a secondary Y-axis to a series and uses the following classes and properties:

SymbolDescription
XYDiagram2D.SecondaryAxesYGets the collection of secondary Y-axes.
SecondaryAxisY2DRepresents the secondary Y-axis within a 2D chart type.
XYSeries2D.AxisYSpecifies the Y-axis (or its View Model) that measures a series.
xaml
<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}"/>

See Also

SecondaryAxesX

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace