# Interface: ExtendedPlugin<TType, O, Model>
# Type parameters
Name | Type |
---|---|
TType | extends ChartType |
O | AnyObject |
Model | TooltipModel <TType > |
# Hierarchy
ExtendedPlugin
↳
Plugin
# 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
Name | Type | Description |
---|---|---|
chart | Chart <keyof ChartTypeRegistry , (number | [number , number ] | Point | BubbleDataPoint )[], unknown > | The chart instance. |
args | Object | The call arguments. |
args.tooltip | Model | The tooltip. |
options | O | The plugin options. |
# Returns
void
# Defined in
types/index.d.ts:2711 (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
Name | Type | Description |
---|---|---|
chart | Chart <keyof ChartTypeRegistry , (number | [number , number ] | Point | BubbleDataPoint )[], unknown > | The chart instance. |
args | Object | The call arguments. |
args.cancelable | true | - |
args.tooltip | Model | The tooltip. |
options | O | The plugin options. |
# Returns
boolean
| void
false
to cancel the chart tooltip drawing.