alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class SunburstLegendTextStyle

    Configures the text style settings for the Sunburst chart legend.

    Inheritance
    object
    ComponentBase
    SunburstLegendTextStyle
    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 SunburstLegendTextStyle : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
    Remarks

    The SunburstLegendTextStyle component provides customization options for the appearance of legend text, including font size, color, font family, font style, font weight, and opacity.

    Use this component to control the visual presentation of legend text and ensure consistency with the overall chart design.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle FontSize="14px" FontWeight="Bold" Color="#424242" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    Constructors

    SunburstLegendTextStyle()

    Declaration
    public SunburstLegendTextStyle()

    Properties

    Color

    Gets or sets the color of the legend text.

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

    A string that specifies the color of the legend text. The default value is determined by the active Theme.

    Remarks

    This property controls the color of the legend text displayed in the Sunburst chart.

    The color can be specified using standard CSS color formats, such as named colors, hexadecimal values, RGB values, and RGBA values.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle Color="#424242" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    FontFamily

    Gets or sets the font family of the legend text.

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

    A string that specifies the font family of the legend text. The default value is determined by the active Theme.

    Remarks

    This property controls the font family used to render the legend text displayed in the Sunburst chart.

    Multiple font families can be specified as a comma-separated list. The browser uses the first available font in the specified order.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle FontFamily="Segoe UI" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    FontSize

    Gets or sets the font size of the legend text.

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

    A string that specifies the font size of the legend text. The default value is determined by the active Theme.

    Remarks

    This property controls the size of the legend text displayed in the Sunburst chart.

    The font size must be specified in pixels (for example, "14px").

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle FontSize="14px" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    FontStyle

    Gets or sets the font style of the legend text.

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

    A string that specifies the font style of the legend text. The default value is determined by the active Theme.

    Remarks

    This property controls the style of the legend text displayed in the Sunburst chart.

    Supported values include Normal, Italic, and Oblique.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle FontStyle="Italic" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    FontWeight

    Gets or sets the font weight of the legend text.

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

    A string that specifies the font weight of the legend text. The default value is determined by the active Theme.

    Remarks

    This property controls the thickness of the legend text displayed in the Sunburst chart.

    Common values include Normal, Bold, Bolder, Lighter, and numeric values such as 400, 500, and 700.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle FontWeight="Bold" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    Opacity

    Gets or sets the opacity of the legend text.

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

    A double value between 0 and 1 that specifies the transparency level of the legend text. The default value is 1.

    Remarks

    This property controls the transparency of the legend text displayed in the Sunburst chart.

    A value of 0 makes the legend text completely transparent, while a value of 1 makes it fully opaque. Values between 0 and 1 produce varying levels of transparency.

    Examples
    <SfSunburstChart>
        <SunburstLegendSettings Visible="true">
            <SunburstLegendTextStyle Opacity="0.5" />
        </SunburstLegendSettings>
    </SfSunburstChart>

    Implements

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