Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.TooltipCallbacks

A server-side-rendered charting library for Fresh
Go to Latest
interface ChartJs.TooltipCallbacks
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.2.1/deps.ts";
const { TooltipCallbacks } = ChartJs;

Type Parameters

TType extends ChartType
optional
Model = TooltipModel<TType>
optional
Item = TooltipItem<TType>

Methods

beforeTitle(this: Model, tooltipItems: Item[]): string | string[] | void
title(this: Model, tooltipItems: Item[]): string | string[] | void
afterTitle(this: Model, tooltipItems: Item[]): string | string[] | void
beforeBody(this: Model, tooltipItems: Item[]): string | string[] | void
afterBody(this: Model, tooltipItems: Item[]): string | string[] | void
beforeLabel(this: Model, tooltipItem: Item): string | string[] | void
label(this: Model, tooltipItem: Item): string | string[] | void
afterLabel(this: Model, tooltipItem: Item): string | string[] | void
labelColor(this: Model, tooltipItem: Item): TooltipLabelStyle | void
labelTextColor(this: Model, tooltipItem: Item): Color | void
labelPointStyle(this: Model, tooltipItem: Item): { pointStyle: PointStyle; rotation: number; } | void
beforeFooter(this: Model, tooltipItems: Item[]): string | string[] | void
afterFooter(this: Model, tooltipItems: Item[]): string | string[] | void