Interface: TooltipModel<TType>

Type parameters

NameType
TTypeextends ChartType

Hierarchy

Properties

active

Readonly active: boolean

Inherited from

Element.active

Defined in

element.d.ts:7TooltipModel - 图1 (opens new window)


afterBody

afterBody: string[]

Defined in

index.esm.d.ts:2497TooltipModel - 图2 (opens new window)


beforeBody

beforeBody: string[]

Defined in

index.esm.d.ts:2495TooltipModel - 图3 (opens new window)


body

body: { after: string[] ; before: string[] ; lines: string[] }[]

Defined in

index.esm.d.ts:2493TooltipModel - 图4 (opens new window)


caretX

caretX: number

Defined in

index.esm.d.ts:2484TooltipModel - 图5 (opens new window)


caretY

caretY: number

Defined in

index.esm.d.ts:2485TooltipModel - 图6 (opens new window)


chart

Readonly chart: Chart<TType, DistributiveArray<ChartTypeRegistry[TType]["defaultDataPoint"]>, unknown>

Defined in

index.esm.d.ts:2469TooltipModel - 图7 (opens new window)


dataPoints

dataPoints: TooltipItem<TType>[]

Defined in

index.esm.d.ts:2472TooltipModel - 图8 (opens new window)


footer: string[]

Defined in

index.esm.d.ts:2505TooltipModel - 图9 (opens new window)


height

height: number

Defined in

index.esm.d.ts:2482TooltipModel - 图10 (opens new window)


labelColors

labelColors: TooltipLabelStyle[]

Defined in

index.esm.d.ts:2508TooltipModel - 图11 (opens new window)


labelPointStyles

labelPointStyles: { pointStyle: PointStyle ; rotation: number }[]

Defined in

index.esm.d.ts:2510TooltipModel - 图12 (opens new window)


labelTextColors

labelTextColors: Color[]

Defined in

index.esm.d.ts:2509TooltipModel - 图13 (opens new window)


opacity

opacity: number

Defined in

index.esm.d.ts:2513TooltipModel - 图14 (opens new window)


options

options: TooltipOptions<TType>

Overrides

Element.options

Defined in

index.esm.d.ts:2516TooltipModel - 图15 (opens new window)


title

title: string[]

Defined in

index.esm.d.ts:2501TooltipModel - 图16 (opens new window)


width

width: number

Defined in

index.esm.d.ts:2481TooltipModel - 图17 (opens new window)


x

x: number

Overrides

Element.x

Defined in

index.esm.d.ts:2479TooltipModel - 图18 (opens new window)


xAlign

xAlign: TooltipXAlignment

Defined in

index.esm.d.ts:2475TooltipModel - 图19 (opens new window)


y

y: number

Overrides

Element.y

Defined in

index.esm.d.ts:2480TooltipModel - 图20 (opens new window)


yAlign

yAlign: TooltipYAlignment

Defined in

index.esm.d.ts:2476TooltipModel - 图21 (opens new window)

Methods

getActiveElements

getActiveElements(): ActiveElement[]

Returns

ActiveElement[]

Defined in

index.esm.d.ts:2518TooltipModel - 图22 (opens new window)


getProps

getProps<P>(props, final?): Pick<AnyObject, P[number]>

Type parameters

NameType
Pextends string[]

Parameters

NameType
propsP
final?boolean

Returns

Pick<AnyObject, P[number]>

Inherited from

Element.getProps

Defined in

element.d.ts:12TooltipModel - 图23 (opens new window)


hasValue

hasValue(): boolean

Returns

boolean

Inherited from

Element.hasValue

Defined in

element.d.ts:11TooltipModel - 图24 (opens new window)


setActiveElements

setActiveElements(active, eventPosition): void

Parameters

NameType
activeActiveDataPoint[]
eventPositionPoint

Returns

void

Defined in

index.esm.d.ts:2519TooltipModel - 图25 (opens new window)


tooltipPosition

tooltipPosition(useFinalPosition?): Point

Parameters

NameType
useFinalPosition?boolean

Returns

Point

Inherited from

Element.tooltipPosition

Defined in

element.d.ts:10TooltipModel - 图26 (opens new window)