# 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
# active
• active: boolean = false
# Inherited from
Element.active
# Defined in
core/core.element.ts:13
# afterBody
• afterBody: string[]
# Defined in
types/index.d.ts:2632
# beforeBody
• beforeBody: string[]
# Defined in
types/index.d.ts:2630
# body
• body: { after: string[] ; before: string[] ; lines: string[] }[]
# Defined in
types/index.d.ts:2628
# caretX
• caretX: number
# Defined in
types/index.d.ts:2619
# caretY
• caretY: number
# Defined in
types/index.d.ts:2620
# chart
• Readonly chart: Chart<TType, DistributiveArray<ChartTypeRegistry[TType]["defaultDataPoint"]>, unknown>
# Defined in
types/index.d.ts:2604
# dataPoints
• dataPoints: TooltipItem<TType>[]
# Defined in
types/index.d.ts:2607
# footer
• footer: string[]
# Defined in
types/index.d.ts:2640
# height
• height: number
# Defined in
types/index.d.ts:2617
# labelColors
• labelColors: TooltipLabelStyle[]
# Defined in
types/index.d.ts:2643
# labelPointStyles
• labelPointStyles: { pointStyle: PointStyle ; rotation: number }[]
# Defined in
types/index.d.ts:2645
# labelTextColors
• labelTextColors: Color[]
# Defined in
types/index.d.ts:2644
# opacity
• opacity: number
# Defined in
types/index.d.ts:2648
# options
• options: TooltipOptions<TType>
# Overrides
Element.options
# Defined in
types/index.d.ts:2651
# title
• title: string[]
# Defined in
types/index.d.ts:2636
# width
• width: number
# Defined in
types/index.d.ts:2616
# x
• x: number
# Overrides
Element.x
# Defined in
types/index.d.ts:2614
# xAlign
• xAlign: TooltipXAlignment
# Defined in
types/index.d.ts:2610
# y
• y: number
# Overrides
Element.y
# Defined in
types/index.d.ts:2615
# yAlign
• yAlign: TooltipYAlignment
# Defined in
types/index.d.ts:2611
# Methods
# getActiveElements
▸ getActiveElements(): ActiveElement[]
# Returns
# Defined in
types/index.d.ts:2653
# 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
▸ 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
# hasValue
▸ hasValue(): boolean
# Returns
boolean
# Inherited from
Element.hasValue
# Defined in
core/core.element.ts:22
# setActiveElements
▸ setActiveElements(active, eventPosition): void
# Parameters
| Name | Type |
|---|---|
active | ActiveDataPoint[] |
eventPosition | Point |
# Returns
void
# Defined in
types/index.d.ts:2654
# tooltipPosition
▸ tooltipPosition(useFinalPosition): Point
# Parameters
| Name | Type |
|---|---|
useFinalPosition | boolean |
# Returns
# Inherited from
Element.tooltipPosition
# Defined in
core/core.element.ts:17