SecondaryAxisXCollection Class

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

Namespace: DevExpress.Xpf.Charts

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


public class SecondaryAxisXCollection :

The following members accept/return SecondaryAxisXCollection objects:


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

The collection of secondary Y-axes is represented by the SecondaryAxisYCollection class.

For more information, refer to Primary and Secondary Axes.


This example demonstrates how to assign a pane and a secondary X-axis to a series. The example uses the following classes and properties:

Symbol Description
XYDiagram2D.SecondaryAxesX Gets the collection of secondary X-axes.
SecondaryAxisX2D A secondary X-axis in the Chart Control’s Cartesian Diagram.
XYSeries2D.AxisX Specifies the X-axis (or its View Model) that measures the series.
XYDiagram2D.Panes Provides access to the diagram‘s pane collection.
Pane An individual pane within the Chart Control’s Cartesian Diagram.
XYSeries2D.Pane Specifies the pane (or its View Model) on which the series is plotted.

View Example

    <dxc:Pane x:Name="secondPane" Margin="0,4,0,0"/>
    <dxc:SecondaryAxisX2D x:Name="secondAxisX" Alignment="Near">
            <dxc:QualitativeScaleOptions AutoGrid="False" AggregateFunction="Sum"/>
    <dxc:BarSideBySideSeries2D x:Name="secondSeries" DisplayName="Meat/Poultry"
                               ArgumentDataMember="ProductName" ValueDataMember="ExtendedPrice" FilterString="[CategoryName] = 'Meat/Poultry'"
                               Pane="{Binding ElementName=secondPane}" AxisX="{Binding ElementName=secondAxisX}" Legend="{Binding ElementName=secondLegend}"/>
See Also