From: Evert Timberg Date: Tue, 9 Mar 2021 13:08:50 +0000 (-0500) Subject: Update scriptable tooltip context docs (#8599) X-Git-Tag: v3.0.0-beta.14~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a042672a74d71fb0238bfaa2310b237d106604e;p=thirdparty%2FChart.js.git Update scriptable tooltip context docs (#8599) --- diff --git a/docs/docs/general/options.md b/docs/docs/general/options.md index 092d8c835..7591b933c 100644 --- a/docs/docs/general/options.md +++ b/docs/docs/general/options.md @@ -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