Class ChartAxisLabelStyle
Options to customize the text style of axis's labels.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartAxisLabelStyle : ChartDefaultFont, ISubcomponentTracker, IChartDefaultFont
Constructors
ChartAxisLabelStyle()
Declaration
public ChartAxisLabelStyle()
Properties
Color
Gets or sets the font color for axis labels.
Declaration
public override string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font color for axis labels. The default font color is determined by the chart's theme. By default, the theme is set to Material with a font color of rgba(97, 97, 97, 1). |
Overrides
Remarks
Use valid hex or rgba CSS color strings for the color value.
FontFamily
Gets or sets the font family for axis labels.
Declaration
public override string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font family for axis labels. The default font family is determined by the chart's theme. By default, the theme is set to Material with the font family Roboto. |
Overrides
FontWeight
Gets or sets the font weight for axis labels.
Declaration
public override string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight for axis labels. The default font weight is determined by the chart's theme. By default, the theme is set to Material with a font weight of 400. |
Overrides
Remarks
The FontWeight property allows you to specify the thickness or boldness of the font used for rendering axis labels.
Common values include "Normal", "Bold", "Bolder", "Lighter", or numeric values such as 100, 200, ..., 900.
Size
Gets or sets the font size for axis labels.
Declaration
public override string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size for axis labels. The default font size for the axis labels is 12px. |
Overrides
Remarks
The Size property allows you to specify the font size for rendering axis labels.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSet()
Declaration
protected override void OnParametersSet()