Class ChartDataLabelFont
Provide options to customize the text style of datalabel.
Inherited Members
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
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
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
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
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()