# Interface: TooltipCallbacks<TType, Model, Item>

# Type parameters

Name Type
TType extends ChartType
Model TooltipModel<TType>
Item TooltipItem<TType>

# Hierarchy

# Methods

# afterBody

▸ afterBody(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2749 (opens new window)


# afterFooter

▸ afterFooter(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2761 (opens new window)


# afterLabel

▸ afterLabel(this, tooltipItem): string | void | string[]

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

string | void | string[]

# Overrides

TooltipDatasetCallbacks.afterLabel

# Defined in

types/index.d.ts:2753 (opens new window)


# afterTitle

▸ afterTitle(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2746 (opens new window)


# beforeBody

▸ beforeBody(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2748 (opens new window)


# beforeFooter

▸ beforeFooter(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2759 (opens new window)


# beforeLabel

▸ beforeLabel(this, tooltipItem): string | void | string[]

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

string | void | string[]

# Overrides

TooltipDatasetCallbacks.beforeLabel

# Defined in

types/index.d.ts:2751 (opens new window)


# beforeTitle

▸ beforeTitle(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2744 (opens new window)


▸ footer(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2760 (opens new window)


# label

▸ label(this, tooltipItem): string | void | string[]

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

string | void | string[]

# Overrides

TooltipDatasetCallbacks.label

# Defined in

types/index.d.ts:2752 (opens new window)


# labelColor

▸ labelColor(this, tooltipItem): void | TooltipLabelStyle

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

void | TooltipLabelStyle

# Overrides

TooltipDatasetCallbacks.labelColor

# Defined in

types/index.d.ts:2755 (opens new window)


# labelPointStyle

▸ labelPointStyle(this, tooltipItem): void | { pointStyle: PointStyle ; rotation: number }

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

void | { pointStyle: PointStyle ; rotation: number }

# Overrides

TooltipDatasetCallbacks.labelPointStyle

# Defined in

types/index.d.ts:2757 (opens new window)


# labelTextColor

▸ labelTextColor(this, tooltipItem): void | Color

# Parameters

Name Type
this Model
tooltipItem Item

# Returns

void | Color

# Overrides

TooltipDatasetCallbacks.labelTextColor

# Defined in

types/index.d.ts:2756 (opens new window)


# title

▸ title(this, tooltipItems): string | void | string[]

# Parameters

Name Type
this Model
tooltipItems Item[]

# Returns

string | void | string[]

# Defined in

types/index.d.ts:2745 (opens new window)