Class SunburstDataLabelSettings
Configures the data label settings for the Sunburst chart.
Inherited Members
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.
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.
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>