menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartDataLabelFont - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartDataLabelFont

    Provide options to customize the text style of datalabel.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultFont
    ChartDataLabelFont
    Inherited Members
    ChartDefaultFont.FontStyle
    ChartDefaultFont.Opacity
    ChartDefaultFont.TextAlignment
    ChartDefaultFont.TextOverflow
    ChartSubComponent.BuildRenderTree(RenderTreeBuilder)
    ChartSubComponent.ChildContent
    ChartSubComponent.Dispose(Boolean)
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartDataLabelFont : ChartDefaultFont, ISubcomponentTracker, IChartDefaultFont

    Constructors

    ChartDataLabelFont()

    Declaration
    public ChartDataLabelFont()

    Properties

    Color

    Gets or sets the color of the data label text.

    Declaration
    public override string Color { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the color of the font for data label text.

    Overrides
    ChartDefaultFont.Color
    Remarks

    This property defines the font color used for the data labels in the chart.

    FontFamily

    Gets or sets the font family of the data label.

    Declaration
    public override string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the font family used for the data label text.

    Overrides
    ChartDefaultFont.FontFamily
    Remarks

    This property specifies the font family that is applied to the data label text.

    FontWeight

    Gets or sets the font weight of the data label.

    Declaration
    public override string FontWeight { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the weight of the font used for the data label text.

    Overrides
    ChartDefaultFont.FontWeight
    Remarks

    This property allows customization of the font weight (e.g., bold, normal) for the data label text.

    Size

    Gets or sets the size of the data label text.

    Declaration
    public override string Size { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the size of the font for data label text.

    Overrides
    ChartDefaultFont.Size
    Remarks

    This property can be used to change the font size of the data label text.

    Methods

    OnInitialized()

    Declaration
    protected override void OnInitialized()

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()
    Overrides
    ChartSubComponent.OnParametersSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved