# Interface: TooltipItem<TType>
# Type parameters
Name | Type |
---|---|
TType | extends ChartType |
# Properties
# chart
• chart: Chart
<keyof ChartTypeRegistry
, (number
| [number
, number
] | Point
| BubbleDataPoint
)[], unknown
>
The chart the tooltip is being shown on
# Defined in
types/index.d.ts:2898
# dataIndex
• dataIndex: number
Index of this data item in the dataset
# Defined in
types/index.d.ts:2933
# dataset
• dataset: UnionToIntersection
<ChartDataset
<TType
, DistributiveArray
<ChartTypeRegistry
[TType
]["defaultDataPoint"
]>>>
The dataset the item comes from
# Defined in
types/index.d.ts:2923
# datasetIndex
• datasetIndex: number
Index of the dataset the item comes from
# Defined in
types/index.d.ts:2928
# element
• element: default
<AnyObject
, AnyObject
>
The chart element (point, arc, bar, etc.) for this tooltip item
# Defined in
types/index.d.ts:2938
# formattedValue
• formattedValue: string
Formatted value for the tooltip
# Defined in
types/index.d.ts:2918
# label
• label: string
Label for the tooltip
# Defined in
types/index.d.ts:2903
# parsed
• parsed: UnionToIntersection
<ParsedDataType
<TType
>>
Parsed data values for the given dataIndex
and datasetIndex
# Defined in
types/index.d.ts:2908
# raw
• raw: unknown
Raw data values for the given dataIndex
and datasetIndex
# Defined in
types/index.d.ts:2913