]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update scriptable tooltip context docs (#8599)
authorEvert Timberg <evert.timberg+github@gmail.com>
Tue, 9 Mar 2021 13:08:50 +0000 (08:08 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Mar 2021 13:08:50 +0000 (08:08 -0500)
docs/docs/general/options.md

index 092d8c8351d90e7b83409d93a90f7d5f3f8d2c16..7591b933c89634620e7a0b017dfa4c9cc9d231d9 100644 (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