alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartLastDataLabelFont

    Provides font customization options for the last data label within a ChartSeries.

    Inheritance
    System.Object
    SfBaseComponent
    ChartSubComponent
    ChartLastDataLabelFont
    Implements
    System.IAsyncDisposable
    Inherited Members
    SfBaseComponent.DisposeAsync()
    Namespace: Syncfusion.Blazor.Toolkit.Charts
    Assembly: Syncfusion.Blazor.Toolkit.dll
    Syntax
    public class ChartLastDataLabelFont : ChartSubComponent, IAsyncDisposable, ISubcomponentTracker
    Remarks

    Place this subcomponent inside ChartLastDataLabel to control size, family, weight, style, and color of the label text. When a property is not provided, theme defaults (e.g., crosshair label text styles) are used to maintain visual consistency.

    Constructors

    ChartLastDataLabelFont()

    Declaration
    public ChartLastDataLabelFont()

    Properties

    Color

    Gets or sets the font color of the last value label text.

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

    A System.String specifying the text color. Accepts hex (e.g., #00FF00) and rgba (e.g., rgba(0,255,0,1)). If not set, the theme default is used (for example, rgba(97,97,97,1) in Material-based themes).

    Remarks

    Choose a color that contrasts with the background for optimal readability.

    Examples
    <ChartLastDataLabelFont Color="Green" />

    FontFamily

    Gets or sets the font family of the last value label text.

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

    A System.String specifying the font family (e.g., Arial, Roboto). If not set, the chart theme’s default is used.

    Remarks

    Aligns text style with the broader application typography.

    Examples
    <ChartLastDataLabelFont FontFamily="Arial" />

    FontStyle

    Gets or sets the font style of the last value label text.

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

    A System.String such as Normal, Italic, or Oblique. The default is Normal.

    Remarks

    Italic styles may be used for subtle emphasis or to encode meaning.

    Examples
    <ChartLastDataLabelFont FontStyle="Italic" />

    FontWeight

    Gets or sets the font weight of the last value label text.

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

    A System.String such as Normal, Bold, or numeric values like 600. If not set, the theme default is used.

    Remarks

    Use heavier weights to emphasize the label in data-dense scenarios.

    Examples
    <ChartLastDataLabelFont FontWeight="600" />

    Size

    Gets or sets the font size of the last value label text.

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

    A System.String with any valid CSS unit (e.g., 14px, 0.875rem, large). If not set, a theme-specific default (e.g., crosshair text size) is used.

    Remarks

    Set this to tailor text legibility for your application’s typography scale.

    Examples
    <ChartLastDataLabelFont Size="14px" />

    Implements

    System.IAsyncDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved