How to: Color Tree Map Using the Group Gradient Colorizer
To color tree map items using the Group Gradient Colorizer, do the following.
- Assign a newly created TreeMapGroupGradientColorizer object to the TreeMapControl.Colorizer property.
- Specify the required palette using the TreeMapPaletteColorizerBase.Palette property, and the gradient color using TreeMapGroupGradientColorizer.GradientColor.
- Optionally, set the TreeMapGroupGradientColorizer.Min and TreeMapGroupGradientColorizer.Max properties to required values.
<dxtm:TreeMapControl.Colorizer>
<dxtm:TreeMapGroupGradientColorizer
GradientColor="White"
Min="0.5"
Max="1">
<dxtm:Office2013Palette/>
</dxtm:TreeMapGroupGradientColorizer>
</dxtm:TreeMapControl.Colorizer>