alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class SunburstDataLabelSettings

    Configures the data label settings for the Sunburst chart.

    Inheritance
    object
    ComponentBase
    SunburstDataLabelSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.Charts.dll
    Syntax
    public class SunburstDataLabelSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
    Remarks

    The SunburstDataLabelSettings component provides options for displaying and customizing data labels for Sunburst chart segments.

    Data labels are used to display textual information associated with individual segments. You can control the visibility and overflow behavior of the labels to improve readability and presentation.

    Examples
    <SfSunburstChart>
        <SunburstDataLabelSettings Visible="true" />
    </SfSunburstChart>

    Constructors

    SunburstDataLabelSettings()

    Declaration
    public SunburstDataLabelSettings()

    Properties

    LabelOverflowMode

    Gets or sets the behavior of data labels when their content exceeds the available space.

    Declaration
    [Parameter]
    public LabelOverflowMode LabelOverflowMode { get; set; }
    Property Value
    Type Description
    LabelOverflowMode

    A LabelOverflowMode value that specifies how overflowing labels are handled. The default value is Trim.

    Remarks

    This property controls how data labels are rendered when their content cannot fit within the available space of a Sunburst chart segment.

    Supported values include None, Trim, and Hide.

    Examples
    <SfSunburstChart>
        <SunburstDataLabelSettings Visible="true" LabelOverflowMode="LabelOverflowMode.Trim" />
    </SfSunburstChart>

    LabelRotationMode

    Gets or sets the rotation mode of data labels.

    Declaration
    [Parameter]
    public LabelRotationMode LabelRotationMode { get; set; }
    Property Value
    Type Description
    LabelRotationMode

    A LabelRotationMode value that specifies how data labels are rendered. The default value is Angle.

    Remarks

    This property controls the orientation of data labels displayed within Sunburst chart segments.

    • Normal - Renders data labels horizontally.
    • Angle - Rotates data labels based on the angle of the corresponding Sunburst segment.
    Examples
    <SfSunburstChart>
        <SunburstDataLabelSettings Visible="true" LabelRotationMode="LabelRotationMode.Normal" />
    </SfSunburstChart>
    
    <SfSunburstChart>
        <SunburstDataLabelSettings Visible="true" LabelRotationMode="LabelRotationMode.Angle" />
    </SfSunburstChart>

    Visible

    Gets or sets a value indicating whether data labels are displayed.

    Declaration
    [Parameter]
    public bool Visible { get; set; }
    Property Value
    Type Description
    bool

    true to display data labels; otherwise, false. The default value is false.

    Remarks

    When enabled, data labels are rendered for the corresponding Sunburst chart segments to provide additional information about the displayed data.

    Data labels help users identify segment values and categories directly within the chart without relying solely on tooltips or legends.

    Examples
    <SfSunburstChart>
        <SunburstDataLabelSettings Visible="true" />
    </SfSunburstChart>

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved