Class ChartLastDataLabelFont
Provides font customization options for the last data label within a ChartSeries.
Implements
Inherited Members
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., |
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., |
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 |
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 |
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., |
Remarks
Set this to tailor text legibility for your application’s typography scale.
Examples
<ChartLastDataLabelFont Size="14px" />