Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.TooltipItem

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

Properties

chart: Chart

The chart the tooltip is being shown on

label: string

Label for the tooltip

parsed: UnionToIntersection<ParsedDataType<TType>>

Parsed data values for the given dataIndex and datasetIndex

raw: unknown

Raw data values for the given dataIndex and datasetIndex

formattedValue: string

Formatted value for the tooltip

dataset: UnionToIntersection<ChartDataset<TType>>

The dataset the item comes from

datasetIndex: number

Index of the dataset the item comes from

dataIndex: number

Index of this data item in the dataset

element: Element

The chart element (point, arc, bar, etc.) for this tooltip item