menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartAxisLabelStyle

    Provides the options to customize the text style of axis labels in a chart.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultFont
    ChartAxisLabelStyle
    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 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
    ChartDefaultFont.Color
    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
    ChartDefaultFont.FontFamily
    Remarks

    This property is used to specify the desired font family for axis labels, allowing for a consistent styling of text across your application.

    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
    ChartDefaultFont.FontWeight
    Remarks

    This 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
    ChartDefaultFont.Size
    Remarks

    This 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()
    Overrides
    ChartSubComponent.OnParametersSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved