Skip to main content
All docs
V24.2

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

SunburstPaletteColorizer.VaryColorInGroup Property

Gets or sets the value that specifies whether to use different colors to paint each sector in the same group.

Namespace: DevExpress.Xpf.TreeMap

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

NuGet Package: DevExpress.Wpf.TreeMap

#Declaration

public bool VaryColorInGroup { get; set; }

#Property Value

Type Description
Boolean

true if sectors in the same group have different colors; otherwise, false.

#Remarks

The following images show a Sunburst chart with different VaryColorInGroup property values:

VaryColorInGroup = false VaryColorInGroup = true
Sectors have the same color if they belong to the same top-level sector. The first sector in the group uses the first color in the palette. Each subsequent sector in the group uses the next color in the palette.

The following code configures and applies a SunburstPaletteColorizer to a Sunburst chart:

<dxtm:SunburstControl>
    <dxtm:SunburstControl.Colorizer>
        <dxtm:SunburstPaletteColorizer VaryColorInGroup="True">
            <dxtm:SunburstPaletteColorizer.Palette>
                <dxtm:NorthernLightsPalette/>
            </dxtm:SunburstPaletteColorizer.Palette>               
        </dxtm:SunburstPaletteColorizer>
    </dxtm:SunburstControl.Colorizer>
</dxtm:SunburstControl>
See Also