Skip to main content
All docs
V24.2

SankeyLabelOverlap Enum

Lists values that specify how DxSankey resolves label overlapping.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum SankeyLabelOverlap

Members

Name Description
Ellipsis

Truncates overlapped labels with ellipsis.

Hide

Hides overlapped labels.

None

Leaves labels overlapped.

Related API Members

The following properties accept/return SankeyLabelOverlap values:

Remarks

Use the DxSankeyLabelSettings.Overlap property to specify how the <DxSankey> component resolves label overlapping.

DxSankey - Label overlap

Example

The following example hides overlapped labels:

<DxSankey Data="@Data"
          Width="100%"
          Height="440px"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    <DxSankeyNodeSettings Width="8" Spacing="30" />
    <DxSankeyLabelSettings Overlap="SankeyLabelOverlap.Hide">
        <DxFontSettings Size="28" Opacity="0.6"/>
    </DxSankeyLabelSettings>
    <DxSankeyLinkSettings ColorMode="SankeyLinkColorMode.Gradient" />
    <DxTitleSettings Text="Commodity Turnover" />
</DxSankey>

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