ChartSeriesTooltip
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSeriesTooltip : ChartSeriesTooltipBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesTooltipBaseChartSeriesTooltip
Implements:
Inherited Members
Constructors
public ChartSeriesTooltip()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
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.
[Parameter]
public string Background { get; set; }
[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.
[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.
[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.
[Parameter]
public bool? Visible { get; set; }