import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.0/deps.ts";
const { TooltipOptions } = ChartJs;
Properties
Are on-canvas tooltips enabled?
The mode for positioning the tooltip
Override the tooltip alignment calculations
Background color of the tooltip.
Color of title
See Fonts
Spacing to add to top and bottom of each title line.
Margin to add on bottom of title section.
Horizontal alignment of the title text lines.
Spacing to add to top and bottom of each tooltip item.
Color of body
See Fonts.
Horizontal alignment of the body text lines.
Padding to add to the tooltip
Extra distance to move the end of the tooltip arrow away from the tooltip point.
Size, in px, of the tooltip arrow.
Radius of tooltip corner curves.
Color to draw behind the colored boxes when multiple items are in the tooltip.
If true, color boxes are shown in the tooltip.
Width of the color box if displayColors is true.
Height of the color box if displayColors is true.
Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)
Color of the border.
Size of the border.
true for rendering the legends from right to left.
This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas
Methods
See external tooltip section.