New to Telerik UI for BlazorStart a free 30-day trial

Configures hover tooltips for individual chart series to display detailed data information when users interact with data points. Controls tooltip appearance, content, and visibility to enhance user experience and provide immediate access to precise data values without cluttering the chart visualization.

Definition

Constructors

C#
public ChartSeriesTooltip()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Sets the background color for series tooltips using any valid CSS color value. Accepts hex codes (#263238), RGB values (rgb(38, 50, 56)), named colors (darkgray, black), or HSL values. Use colors that provide good contrast with tooltip text and complement the overall chart theme.

C#
[Parameter]
public string Background { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Sets the text color for series tooltip content using any valid CSS color value. Accepts hex codes (#FFFFFF), RGB values (rgb(255, 255, 255)), named colors (white, black), or HSL values. Ensure sufficient contrast against the tooltip background for optimal readability.

C#
[Parameter]
public string Color { get; set; }

Defines the font styling for tooltip text using CSS font notation. Specify font size, family, and style like "12px Arial", "14px 'Segoe UI'", or "bold 13px sans-serif". Proper font selection ensures tooltip readability and consistency with chart styling.

C#
[Parameter]
public string Font { get; set; }

Controls the visibility of series-specific tooltips. Set to true to enable hover tooltips showing data values, false to disable tooltips for this series, or leave null for default behavior. Tooltips enhance data exploration but can be disabled for cleaner presentations.

C#
[Parameter]
public bool? Visible { get; set; }