Skip to content

ChartTooltipController

ClassChartGuruChartGuru
public sealed class ChartTooltipController

Backend-neutral retained tooltip state machine. It consumes shape-aware interaction hits, builds preset or user-defined content, and exposes one state stream that any host presenter can bind to.

ChartTooltipController(ChartInteractionController)

Section titled “ChartTooltipController(ChartInteractionController)”
public ChartTooltipController(ChartInteractionController interaction)

Creates retained tooltip content and subscribes to pointer events on the required interaction controller.

Parameters

Name Type
interaction ChartGuru.ChartInteractionController

public void Bind(Chart chart, ChartProxy proxy)

Associates this tooltip state machine with the current chart and proxy.

Parameters

Name Type
chart ChartGuru.Chart
proxy ChartGuru.ChartProxy
public void Refresh()

Rebuilds visible content after data, formatting, theme, or layout changes.

public bool RefreshPlacement()

Updates only retained hit geometry after layout or animation. Returns true when the presenter needs repositioning. Content and public binding callbacks are intentionally left untouched.

Returns

System.Boolean

public void Hide()

Hides and unpins the current tooltip.

public void Dispose()

Detaches chart selection and pointer-event subscriptions and clears tooltip change callbacks.

public ChartTooltipState State { get; }

Current retained state for data binding and custom presenters.

Returns

ChartGuru.ChartTooltipState

public event Action<ChartTooltipState> Changed

Raised after visible content, pin state, or the semantic hit changes.

Returns

System.Action{ChartGuru.ChartTooltipState}

public event Action<ChartTooltipState> PresentationChanged

Raised for additional pointer-only or animation-driven placement updates that do not rebuild content. Subscribe to both this event and ChartGuru.ChartTooltipController.Changed when implementing a custom presenter.

Returns

System.Action{ChartGuru.ChartTooltipState}