ChartTooltipController
public sealed class ChartTooltipControllerBackend-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.
Constructors
Section titled “Constructors”
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 |
Methods
Section titled “Methods”
Bind(Chart, ChartProxy)
Section titled “Bind(Chart, ChartProxy)”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 |
Refresh()
Section titled “Refresh()”public void Refresh()Rebuilds visible content after data, formatting, theme, or layout changes.
RefreshPlacement()
Section titled “RefreshPlacement()”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
Hide()
Section titled “Hide()”public void Hide()Hides and unpins the current tooltip.
Dispose()
Section titled “Dispose()”public void Dispose()Detaches chart selection and pointer-event subscriptions and clears tooltip change callbacks.
Properties
Section titled “Properties”
public ChartTooltipState State { get; }Current retained state for data binding and custom presenters.
Returns
ChartGuru.ChartTooltipState
Events
Section titled “Events”
Changed
Section titled “Changed”public event Action<ChartTooltipState> ChangedRaised after visible content, pin state, or the semantic hit changes.
Returns
System.Action{ChartGuru.ChartTooltipState}
PresentationChanged
Section titled “PresentationChanged”public event Action<ChartTooltipState> PresentationChangedRaised 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}