Skip to main content

XYDiagram3D Class

Represents a diagram that is used to plot XY 3D series.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public sealed class XYDiagram3D :
    Diagram3D,
    IXYDiagram,
    IDiagram,
    IAxisProvider,
    IPane

Remarks

After you set the ChartControl.Diagram property to the XYDiagram3D type, series of compatible types can be added to the Diagram.Series collection.

To learn which series views and axis types are compatible with the XYDiagram3D type, refer to Diagram and Series Type Compatibility.

Example

The following example demonstrates how to create a 3D Point chart. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram3D, and then add a PointSeries3D object with points to the diagram’s Diagram.Series collection.

<Window x:Class="Point3DChart.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" Title="Window1" Height="350" Width="500">
    <Grid>
        <dxc:ChartControl Name="chartControl1">
            <dxc:ChartControl.Diagram>
                <dxc:XYDiagram3D>
                    <dxc:XYDiagram3D.Series>
                        <dxc:PointSeries3D ColorEach="True">
                            <dxc:PointSeries3D.Points>
                                <dxc:SeriesPoint Argument="A" Value="7" />
                                <dxc:SeriesPoint Argument="B" Value="12" />
                                <dxc:SeriesPoint Argument="C" Value="14" />
                                <dxc:SeriesPoint Argument="D" Value="17" />
                                <dxc:SeriesPoint Argument="E" Value="13" />
                            </dxc:PointSeries3D.Points>
                            <!--region #Model-->
                            <dxc:PointSeries3D.Model>
                                <dxc:RoundedCubeMarker3DModel />
                            </dxc:PointSeries3D.Model>
                            <!--endregion #Model-->
                        </dxc:PointSeries3D>
                    </dxc:XYDiagram3D.Series>
                </dxc:XYDiagram3D>
            </dxc:ChartControl.Diagram>
        </dxc:ChartControl>
    </Grid>
</Window>
See Also