Back to Devexpress

SunburstPaletteColorizer.VaryColorInGroup Property

wpf-devexpress-dot-xpf-dot-treemap-dot-sunburstpalettecolorizer.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.TreeMap

Declaration

csharp
public bool VaryColorInGroup { get; set; }
vb
Public Property VaryColorInGroup As Boolean

Property Value

TypeDescription
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 = falseVaryColorInGroup = 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:

xaml
<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

SunburstPaletteColorizer Class

SunburstPaletteColorizer Members

DevExpress.Xpf.TreeMap Namespace