Interface: ExtendedPlugin<TType, O, Model>

Type parameters

NameType
TTypeextends ChartType
OAnyObject
ModelTooltipModel<TType>

Hierarchy

Methods

afterTooltipDraw

Optional afterTooltipDraw(chart, args, options): void

desc Called after drawing the tooltip. Note that this hook will not be called if the tooltip drawing has been previously cancelled.

Parameters

NameTypeDescription
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>The chart instance.
argsObjectThe call arguments.
args.tooltipModelThe tooltip.
optionsOThe plugin options.

Returns

void

Defined in

index.esm.d.ts:2595ExtendedPlugin - 图1 (opens new window)


beforeTooltipDraw

Optional beforeTooltipDraw(chart, args, options): boolean | void

desc Called before drawing the tooltip. If any plugin returns false, the tooltip drawing is cancelled until another render is triggered.

Parameters

NameTypeDescription
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>The chart instance.
argsObjectThe call arguments.
args.tooltipModelThe tooltip.
optionsOThe plugin options.

Returns

boolean | void

false to cancel the chart tooltip drawing.

Defined in

index.esm.d.ts:2586ExtendedPlugin - 图2 (opens new window)