Skip to main content

Chart3DControl Class

The 3D chart control.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public class Chart3DControl :
    ChartControlBase,
    IContainerElement,
    IChartElement,
    IOwnedElement,
    INotificationOwner,
    IChartDiagram,
    IDiagram3D,
    IXYZDiagram,
    IXYDiagram,
    IDiagram,
    IPane,
    IAxisProvider,
    IAggregateFunctionProvider,
    ISupportCrosshairLayout,
    IContainerToolTipOptions,
    IContainerDataOptions,
    IContainerChartOptions

Remarks

The following image demonstrates the example of the Chart3D control.

Chart3D-Interactivity-TitleImage

Example

The following classes and properties are used.

YAxis3D

represents the Y-axis (the axis of values) of the 3D chart.

Series3DStorage

the unbound series source.

SeriesPoint3DStorage

the unbound series point source.

Series3D

the series within the 3D chart.

SeriesPoint3D

the point within the series.

Bar3DSeriesView

the bar series view of the series.

<dxc:Chart3DControl Padding="0"
                    AspectRatio="2,1,1">
    <dxc:Chart3DControl.Legends>
        <dxc:Legend x:Name="legend"
                    HorizontalPosition="Right"
                    VerticalPosition="Top"
                    Orientation="Vertical"
                    Padding="4"
                    IndentFromDiagram="4">
            <dxc:Legend.Title>
                <dxc:LegendTitle Content="GDP by Year" />
            </dxc:Legend.Title>
        </dxc:Legend>
    </dxc:Chart3DControl.Legends>
    <dxc:Chart3DControl.YAxis>
        <dxc:YAxis3D>
            <dxc:YAxis3D.CrosshairAxisLabelOptions>
                <dxc:CrosshairAxisLabelOptions Pattern="{}{V:F1}" />
            </dxc:YAxis3D.CrosshairAxisLabelOptions>
        </dxc:YAxis3D>
    </dxc:Chart3DControl.YAxis>
    <dxc:Series3DStorage>
        <dxc:Series3D LegendTextPattern="{}{S}"
                      XArgumentScaleType="Qualitative"
                      YArgumentScaleType="Qualitative"
                      LabelsVisibility="False"
                      CrosshairLabelPattern="{}{X},{Z}: {Y:F0}">
            <dxc:Series3D.Label>
                <dxc:SeriesLabel TextPattern="{}{V:F0}" />
            </dxc:Series3D.Label>
            <dxc:Series3D.View>
                <dxc:Bar3DSeriesView EqualBarSize="True">
                    <dxc:Bar3DSeriesView.Colorizer>
                        <dxc:KeyColorColorizer3D>
                            <dxc:KeyColorColorizer3D.KeyProvider>
                                <dxc:YArgumentKeyProvider3D />
                            </dxc:KeyColorColorizer3D.KeyProvider>
                        </dxc:KeyColorColorizer3D>
                    </dxc:Bar3DSeriesView.Colorizer>
                    <dxc:Bar3DSeriesView.BarModel>
                        <dxc:Bar3DBoxPointModel ShowFacets="False" />
                    </dxc:Bar3DSeriesView.BarModel>
                </dxc:Bar3DSeriesView>
            </dxc:Series3D.View>
            <dxc:SeriesPoint3DStorage>
                <dxc:SeriesPoint3D XArgument="USA"      YArgument="2014"    Value="17348" />
                <dxc:SeriesPoint3D XArgument="China"    YArgument="2014"    Value="10430" />
                <dxc:SeriesPoint3D XArgument="Japan"    YArgument="2014"    Value="4602" />
                <dxc:SeriesPoint3D XArgument="Germany"  YArgument="2014"    Value="3868" />
                <dxc:SeriesPoint3D XArgument="UK"       YArgument="2014"    Value="2989" />

                <dxc:SeriesPoint3D XArgument="USA"      YArgument="2015"    Value="17947" />
                <dxc:SeriesPoint3D XArgument="China"    YArgument="2015"    Value="10866" />
                <dxc:SeriesPoint3D XArgument="Japan"    YArgument="2015"    Value="4123" />
                <dxc:SeriesPoint3D XArgument="Germany"  YArgument="2015"    Value="3356" />
                <dxc:SeriesPoint3D XArgument="UK"       YArgument="2015"    Value="2849" />

                <dxc:SeriesPoint3D XArgument="USA"      YArgument="2016"    Value="18561" />
                <dxc:SeriesPoint3D XArgument="China"    YArgument="2016"    Value="11392" />
                <dxc:SeriesPoint3D XArgument="Japan"    YArgument="2016"    Value="4730" />
                <dxc:SeriesPoint3D XArgument="Germany"  YArgument="2016"    Value="3495" />
                <dxc:SeriesPoint3D XArgument="UK"       YArgument="2016"    Value="2650" />
            </dxc:SeriesPoint3DStorage>
        </dxc:Series3D>
    </dxc:Series3DStorage>
</dxc:Chart3DControl>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Chart3DControl class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also