Skip to main content
All docs
V25.1
  • SankeyLinkColorMode Enum

    Lists color modes for DxSankey links.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    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