Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColorObjectColorizer3D Class

Colorizer that colors points using the color specified by the color data member.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class ColorObjectColorizer3D :
    Colorizer3DBase

#Remarks

This colorizer works only if the data is provided by the Series3DDataSourceAdapter or SeriesPoint3DDataSourceAdapter.

#Example

This example demonstrates how to colorize series point markers in colors stored in a data source. To do this, assign an ColorObjectColorizer3D object to the Series3DViewBase.Colorizer property.

<dxc:Series3D DisplayName="Series 1">
    <dxc:Series3D.View>
        <dxc:Bubble3DSeriesView MinSize="0.5"
                                MaxSize="2">
            <dxc:Bubble3DSeriesView.Colorizer>
                <dxc:ColorObjectColorizer3D/>
            </dxc:Bubble3DSeriesView.Colorizer>
            <dxc:Bubble3DSeriesView.MarkerModel>
                <dxc:Marker3DSpherePointModel SphereDetalizationLevel="Normal"/>
            </dxc:Bubble3DSeriesView.MarkerModel>
        </dxc:Bubble3DSeriesView>
    </dxc:Series3D.View>
    <dxc:SeriesPoint3DDataSourceAdapter DataSource="{Binding Path=DataPoints}"
                                        XArgumentDataMember="XArgument"
                                        YArgumentDataMember="YArgument"
                                        ValueDataMember="Value"
                                        dxc:Bubble3DSeriesView.WeightDataMember="Weight"
                                        ColorDataMember="Color"/>
</dxc:Series3D>
See Also