Interface: TooltipCallbacks<TType, Model, Item>
Type parameters
Name | Type | Default |
---|---|---|
TType | ChartType | - |
Model | - | TooltipModel<TType> |
Item | - | TooltipItem<TType> |
Methods
afterBody
▸ afterBody(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2351 (opens new window)
afterFooter
▸ afterFooter(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2363 (opens new window)
afterLabel
▸ afterLabel(tooltipItem
: Item): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: string | string[]
Defined in: index.esm.d.ts:2355 (opens new window)
afterTitle
▸ afterTitle(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2348 (opens new window)
beforeBody
▸ beforeBody(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2350 (opens new window)
beforeFooter
▸ beforeFooter(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2361 (opens new window)
beforeLabel
▸ beforeLabel(tooltipItem
: Item): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: string | string[]
Defined in: index.esm.d.ts:2353 (opens new window)
beforeTitle
▸ beforeTitle(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2346 (opens new window)
footer
▸ footer(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2362 (opens new window)
label
▸ label(tooltipItem
: Item): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: string | string[]
Defined in: index.esm.d.ts:2354 (opens new window)
labelColor
▸ labelColor(tooltipItem
: Item): TooltipLabelStyle
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: TooltipLabelStyle
Defined in: index.esm.d.ts:2357 (opens new window)
labelPointStyle
▸ labelPointStyle(tooltipItem
: Item): object
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: object
Name | Type |
---|---|
pointStyle | PointStyle |
rotation | number |
Defined in: index.esm.d.ts:2359 (opens new window)
labelTextColor
▸ labelTextColor(tooltipItem
: Item): Color
Parameters:
Name | Type |
---|---|
tooltipItem | Item |
Returns: Color
Defined in: index.esm.d.ts:2358 (opens new window)
title
▸ title(tooltipItems
: Item[]): string | string[]
Parameters:
Name | Type |
---|---|
tooltipItems | Item[] |
Returns: string | string[]
Defined in: index.esm.d.ts:2347 (opens new window)