Skip to main content

How to: Create a 3D Point Chart

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="" xmlns:x="" xmlns:dxc="" Title="Window1" Height="350" Width="500">
        <dxc:ChartControl Name="chartControl1">
                        <dxc:PointSeries3D ColorEach="True">
                                <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" />
                            <!--region #Model-->
                                <dxc:RoundedCubeMarker3DModel />
                            <!--endregion #Model-->