]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Docs: fix tooltip model doc. (#11143)
authorleo2436 <58366762+leo2436@users.noreply.github.com>
Wed, 15 Feb 2023 13:13:24 +0000 (21:13 +0800)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 13:13:24 +0000 (08:13 -0500)
Co-authored-by: Leo Chen <liang.chen@thoughtworks.com>
docs/configuration/tooltip.md

index bb893e176c89b43352e10bb6652eceed8d18765e..03cf8a4672438e7ff54063c1655b99e8b5ac5700 100644 (file)
@@ -377,9 +377,10 @@ The tooltip model contains parameters that can be used to render the tooltip.
     // lines of text that form the footer
     footer: string[],
 
-    // colors to render for each item in body[]. This is the color of the squares in the tooltip
-    labelColors: Color[],
+    // style to render for each item in body[]. This is the style of the squares in the tooltip
+    labelColors: TooltipLabelStyle[],
     labelTextColors: Color[],
+    labelPointStyles: { pointStyle: PointStyle; rotation: number }[],
 
     // 0 opacity is a hidden tooltip
     opacity: number,