Skip to main content
All docs
V24.2

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