# Interface: TooltipModel<TType>
# Type parameters
| Name | Type |
|---|---|
TType | extends ChartType |
# Hierarchy
default<AnyObject,TooltipOptions<TType>>↳
TooltipModel
# Properties
# $animations
• $animations: Record<string, Animation>
# Inherited from
Element.$animations
# Defined in
core/core.element.ts:15 (opens new window)
# active
• active: boolean = false
# Inherited from
Element.active
# Defined in
core/core.element.ts:13 (opens new window)
# afterBody
• afterBody: string[]
# Defined in
types/index.d.ts:2677 (opens new window)
# beforeBody
• beforeBody: string[]
# Defined in
types/index.d.ts:2675 (opens new window)
# body
• body: { after: string[] ; before: string[] ; lines: string[] }[]
# Defined in
types/index.d.ts:2673 (opens new window)
# caretX
• caretX: number
# Defined in
types/index.d.ts:2664 (opens new window)
# caretY
• caretY: number
# Defined in
types/index.d.ts:2665 (opens new window)
# chart
• Readonly chart: Chart<TType, DistributiveArray<ChartTypeRegistry[TType]["defaultDataPoint"]>, unknown>
# Defined in
types/index.d.ts:2649 (opens new window)
# dataPoints
• dataPoints: TooltipItem<TType>[]
# Defined in
types/index.d.ts:2652 (opens new window)
# footer
• footer: string[]
# Defined in
types/index.d.ts:2685 (opens new window)
# height
• height: number
# Defined in
types/index.d.ts:2662 (opens new window)
# labelColors
• labelColors: TooltipLabelStyle[]
# Defined in
types/index.d.ts:2688 (opens new window)
# labelPointStyles
• labelPointStyles: { pointStyle: PointStyle ; rotation: number }[]
# Defined in
types/index.d.ts:2690 (opens new window)
# labelTextColors
• labelTextColors: Color[]
# Defined in
types/index.d.ts:2689 (opens new window)
# opacity
• opacity: number
# Defined in
types/index.d.ts:2693 (opens new window)
# options
• options: TooltipOptions<TType>
# Overrides
Element.options
# Defined in
types/index.d.ts:2696 (opens new window)
# title
• title: string[]
# Defined in
types/index.d.ts:2681 (opens new window)
# width
• width: number
# Defined in
types/index.d.ts:2661 (opens new window)
# x
• x: number
# Overrides
Element.x
# Defined in
types/index.d.ts:2659 (opens new window)
# xAlign
• xAlign: TooltipXAlignment
# Defined in
types/index.d.ts:2655 (opens new window)
# y
• y: number
# Overrides
Element.y
# Defined in
types/index.d.ts:2660 (opens new window)
# yAlign
• yAlign: TooltipYAlignment
# Defined in
types/index.d.ts:2656 (opens new window)
# Methods
# getActiveElements
▸ getActiveElements(): ActiveElement[]
# Returns
# Defined in
types/index.d.ts:2698 (opens new window)
# getProps
▸ getProps<P>(props, final?): Pick<AnyObject, P[number]>
Gets the current or final value of each prop. Can return extra properties (whole object).
# Type parameters
| Name | Type |
|---|---|
P | extends string[] |
# Parameters
| Name | Type | Description |
|---|---|---|
props | P | properties to get |
final? | boolean | get the final value (animation target) |
# Returns
Pick<AnyObject, P[number]>
# Inherited from
Element.getProps
# Defined in
core/core.element.ts:31 (opens new window)
▸ getProps<P>(props, final?): Partial<Record<P, unknown>>
# Type parameters
| Name | Type |
|---|---|
P | extends string |
# Parameters
| Name | Type |
|---|---|
props | P[] |
final? | boolean |
# Returns
Partial<Record<P, unknown>>
# Inherited from
Element.getProps
# Defined in
core/core.element.ts:32 (opens new window)
# hasValue
▸ hasValue(): boolean
# Returns
boolean
# Inherited from
Element.hasValue
# Defined in
core/core.element.ts:22 (opens new window)
# setActiveElements
▸ setActiveElements(active, eventPosition): void
# Parameters
| Name | Type |
|---|---|
active | ActiveDataPoint[] |
eventPosition | Point |
# Returns
void
# Defined in
types/index.d.ts:2699 (opens new window)
# tooltipPosition
▸ tooltipPosition(useFinalPosition): Point
# Parameters
| Name | Type |
|---|---|
useFinalPosition | boolean |
# Returns
# Inherited from
Element.tooltipPosition