]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update tooltip.md (#10813)
authorPhilippe Jaubert <22506952+PhilJbt@users.noreply.github.com>
Wed, 19 Oct 2022 13:13:34 +0000 (15:13 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Oct 2022 13:13:34 +0000 (15:13 +0200)
Fixed spawn closes before its content.

docs/configuration/tooltip.md

index db55ca7bebbf7b347c955fccadedaa3608bd1354..f2430d4b913900421de4b9fd0b5213d775829403 100644 (file)
@@ -304,8 +304,8 @@ const myPieChart = new Chart(ctx, {
                             let style = 'background:' + colors.backgroundColor;
                             style += '; border-color:' + colors.borderColor;
                             style += '; border-width: 2px';
-                            const span = '<span style="' + style + '"></span>';
-                            innerHtml += '<tr><td>' + span + body + '</td></tr>';
+                            const span = '<span style="' + style + '">' + body + '</span>';
+                            innerHtml += '<tr><td>' + span + '</td></tr>';
                         });
                         innerHtml += '</tbody>';