Back to Devexpress

SankeyPaletteColorizer.Palette Property

corelibraries-devexpress-dot-xtracharts-dot-sankey-dot-sankeypalettecolorizer.md

latest1.9 KB
Original Source

SankeyPaletteColorizer.Palette Property

Gets or sets a palette that should be applied to a Sankey diagram.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[Browsable(false)]
public Palette Palette { get; set; }
vb
<Browsable(False)>
Public Property Palette As Palette

Property Value

TypeDescription
Palette

A palette that is applied to a diagram.

|

Remarks

A new color from the palette is applied to each node with a unique label. Colors repeat if the number of unique labels exceeds the number of palette colors. To apply a gradient fill to links, the control utilizes the source and target node colors.

The code below specifies a diagram’s palette and link color:

csharp
sankeyDiagramControl1.Colorizer = new SankeyPaletteColorizer {
    Palette = Palettes.NorthernLights,
    LinkColor = Color.Gray
};
vb
sankeyDiagramControl1.Colorizer = New SankeyPaletteColorizer With {
            .Palette = Palettes.NorthernLights,
            .LinkColor = Color.Gray
        }

See Also

SankeyPaletteColorizer Class

SankeyPaletteColorizer Members

DevExpress.XtraCharts.Sankey Namespace