Class ChartCrosshairTextStyle
Provides option to cusomize the tooltip text style of the crosshair tooltip.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartCrosshairTextStyle : ChartDefaultFont, ISubcomponentTracker, IChartDefaultFont
Constructors
ChartCrosshairTextStyle()
Declaration
public ChartCrosshairTextStyle()
Properties
Color
Gets or sets the color for the crosshair tooltip text.
Declaration
public override string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color for the crosshair tooltip text. The default crosshair tooltip text color is determined by the chart's theme. By default, the theme is set to Material with a crosshair tooltip text color of rgba(249, 250, 251, 1). |
Overrides
Remarks
The fill color accepts values in hex or rgba as a valid CSS color string.
FontFamily
Gets or sets the font family for the crosshair tooltip text.
Declaration
public override string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font family for the crosshair tooltip text. 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
The font family can be customized to adhere to organizational typography standards or particular aesthetic choices within charts.
FontWeight
Gets or sets the font weight for the crosshair tooltip text.
Declaration
public override string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight for the crosshair tooltip text. 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
This property allows modification of text thickness across crosshair tooltips, offering enhanced visual emphasis according to user needs.
Size
Gets or sets the font size for the crosshair tooltip text.
Declaration
public override string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size for the crosshair tooltip text. The default font size for the crosshair tooltip text is 12px. |
Overrides
Remarks
This property allows the customization of tooltip text size to ensure readability across devices with different screen resolutions.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()