TreeMapGroupGradientColorizer Class
The colorizer that colors the tree map items in colors blended from group colors and gradient colors in a proportion based on the tree map item value.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v24.2.dll
Declaration
Remarks
This class introduces the TreeMapGroupGradientColorizer.GradientColor that allows specifying the mixing color, and the TreeMapGroupGradientColorizer.Min and TreeMapGroupGradientColorizer.Max properties specifying the maximum and minimum of portion of the color assigned to the item’s group.
For more information about colorizers, refer to the Colorizers topic.
Example
To color each tree map group using similar colors, use the TreeMapGroupGradientColorizer
class. Assign an instance of the class to the TreeMapControl.Colorizer property. The TreeMapPaletteColorizerBase.Palette property specifies colors assigned to groups. The TreeMapGroupGradientColorizer.Max and TreeMapGroupGradientColorizer.Min properties configure the maximum and minimum portion of palette colors in colors assigned to items. The TreeMapGroupGradientColorizer.GradientColor property sets a color with which palette colors are mixed.
void ConfigureTreeMapColorizer() {
treeMap.Colorizer = new TreeMapGroupGradientColorizer {
GradientColor = Color.White,
Max = 1,
Min = 0.3,
Palette = Palette.Office2013Palette,
};
}