Class ChartTitleStyle
Provides options to customize the title style of the chart.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartTitleStyle : ChartDefaultFont, ISubcomponentTracker, IChartDefaultFont
Constructors
ChartTitleStyle()
Declaration
public ChartTitleStyle()
Properties
AccessibilityDescription
Gets or sets the accessibility description for the chart title.
Declaration
public string AccessibilityDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string that defines the accessibility description for the chart title. The default value is an empty string. |
Remarks
Use this property to provide an accessibility description for screen readers and other assistive technologies.
AccessibilityRole
Gets or sets the accessibility role for the chart title.
Declaration
public string AccessibilityRole { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string that defines the accessibility role for the chart title. The default value is null. |
Remarks
Use this property to provide an accessibility role for the chart title.
Focusable
Gets or sets the accessibility keyboard navigation focus option for the chart title.
Declaration
public bool Focusable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Accepts the boolean value to enable or disable the keyboard navigation for the chart title. The default value is true. |
Remarks
Use this property to toggle the keyboard navigation focus for the chart title.
FontFamily
Gets or sets the font family of the chart title.
Declaration
public override string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font family of the chart title. 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
Remarks
This property allows customization of the font family for the chart title, providing flexibility in text appearance and style.
FontWeight
Gets or sets the font weight of the chart title.
Declaration
public override string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight of the chart title. The default font weight is determined by the chart's theme. By default, the theme is set to Material with a font weight of 600. |
Overrides
Remarks
This property allows customization of the font weight for the chart title, providing flexibility in text styling and emphasis.
Position
Defines the position of the chart title and subtitle.
Declaration
public ChartTitlePosition Position { get; set; }
Property Value
Type | Description |
---|---|
ChartTitlePosition | An enum value representing the position of the title. The default value is 'Top'. |
Remarks
Available options:
- TopDisplays the title and subtitle at the top of the chart.
- LeftDisplays the title and subtitle on the left side of the chart.
- BottomDisplays the title and subtitle at the bottom of the chart.
- RightDisplays the title and subtitle on the right side of the chart.
- CustomDisplays the title and subtitle based on the specified X and Y coordinates.
Size
Gets or sets the font size of the chart title.
Declaration
public override string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size of the chart title. The default title font size is 16px. |
Overrides
Remarks
This property allows customization of the font size for the chart title, providing flexibility in design and presentation.
X
Defines the X coordinate for the chart title and subtitle.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the horizontal position. The default value is 0. |
Remarks
This property is applicable only when the position is set to Custom.
Y
Defines the Y coordinate for the chart title and subtitle.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the vertical position. The default value is 0. |
Remarks
This property is applicable only when the position is set to Custom.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSet()
Declaration
protected override void OnParametersSet()