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

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

NuGet Package: DevExpress.TreeMap

#Declaration

public class TreeMapGroupGradientColorizer :
    TreeMapPaletteColorizerBase

#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,
    };
}

#Implements

See Also