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

SankeyLinkColorMode Enum

Lists color modes for DxSankey links.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum SankeyLinkColorMode

#Members

Name Description
None

The DxSankeyLinkSettings.Color property determines the link color.

Source

The link color matches the source node’s color.

Target

The link color matches the target node’s color.

Gradient

The link color transitions from the source node’s color to the target node’s color.

#Related API Members

The following properties accept/return SankeyLinkColorMode values:

#Remarks

Use the DxSankeyLinkSettings.ColorMode property to specify the color mode for DxSankey links.

#Example

The following example customizes DxSankey links:

DxSankey - Link Customization

<DxSankey Data="@Data"
          Width="100%"
          Height="440px"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    <DxSankeyNodeSettings Width="8" Spacing="30" />
    <DxSankeyLinkSettings ColorMode="SankeyLinkColorMode.Gradient"
                          Opacity="0.5"/>
    <DxTitleSettings Text="Commodity Turnover" />
</DxSankey>

@code {
    IEnumerable<SankeyDataPoint> Data = Enumerable.Empty<SankeyDataPoint>();
    protected override void OnInitialized() {
        Data = GenerateData();
    }
}
See Also