February 2019
Beginner to intermediate
284 pages
6h 20m
English
Tooltips have three properties that receive functions. One allows you to replace the Canvas-generated tooltips with your own custom HTML tooltips. The other two allow sorting of tooltip items (when several items appear in a single tooltip) and filtering. These properties are listed as follows:
|
Object |
Parameters |
Description |
|
custom |
(tooltipModel) |
Used to generate custom HTML tooltips. See the Custom HTML tooltips section on HTML tooltips in this chapter. |
|
filter |
(item, data); array of datasets in data.datasets; array of labels in data.labels; item.x and item.y contain coordinates of the value point, item.xLabel and item.yLabel the labels in each axis, item.index is the index of the item in the dataset, ... |
Read now
Unlock full access