Update scriptable tooltip context docs (#8599)

This commit is contained in:
Evert Timberg 2021-03-09 08:08:50 -05:00 committed by GitHub
parent b005143470
commit 9a042672a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,7 @@ There are multiple levels of context objects:
* `data`
* `scale`
* `tick`
* `tooltip`
Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.
@ -162,3 +163,10 @@ In addition to [scale](#scale)
* `tick`: the associated tick object
* `index`: tick index
* `type`: `'tick'`
### tooltip
In addition to [chart](#chart)
* `tooltip`: the tooltip object
* `tooltipItems`: the items the tooltip is displaying