Table of Contents

Interface IHasTooltipTemplate<TX, TY>

Namespace
BlazOrbit.Charts.Abstractions
Assembly
BlazOrbit.Charts.dll

Implemented by chart types that surface tooltips on hover. Consumers can either provide a format string for the default renderer or supply a fully custom Microsoft.AspNetCore.Components.RenderFragment<TValue> with access to the active context.

public interface IHasTooltipTemplate<TX, TY>

Type Parameters

TX

Type of the X-axis values for the active hover point.

TY

Type of the Y-axis values for the active hover point.

Properties

TooltipFormat

Optional string.Format pattern applied to the default tooltip, e.g. "{0}: {1:N2} €" where {0} is the label and {1} the value. Ignored when TooltipTemplate is set.

string? TooltipFormat { get; }

Property Value

string

TooltipTemplate

Custom render fragment that fully replaces the default tooltip layout. Receives the active BOBChartTooltipContext<TX, TY>.

RenderFragment<BOBChartTooltipContext<TX, TY>>? TooltipTemplate { get; }

Property Value

RenderFragment<BOBChartTooltipContext<TX, TY>>