Interface: ExtendedPlugin<TType, O, Model>
Type parameters
| Name | Type | Default |
|---|---|---|
TType | ChartType | - |
O | - | AnyObject |
Model | - | TooltipModel<TType> |
Hierarchy
ExtendedPlugin
↳ Plugin
Methods
afterTooltipDraw
▸ OptionalafterTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: Model }, options: O): 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<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> | The chart instance. |
args | object | The call arguments. |
args.tooltip | Model | The tooltip. |
options | O | The plugin options. |
Returns: void
Defined in: index.esm.d.ts:2319
(opens new window)
beforeTooltipDraw
▸ OptionalbeforeTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: Model }, options: O): 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<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> | The chart instance. |
args | object | The call arguments. |
args.tooltip | Model | The tooltip. |
options | O | The plugin options. |
Returns: boolean | void
false to cancel the chart tooltip drawing.
Defined in: index.esm.d.ts:2310
(opens new window)