ColorObjectColorizer3D Class
Colorizer that colors points using the color specified by the color data member.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts
Declaration
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-colorize-series-point-markers-in-colors-stored-in-a-data-source-t466427.
<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>