]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix draw issue
authoretimberg <evert.timberg@gmail.com>
Tue, 24 Nov 2015 02:54:45 +0000 (21:54 -0500)
committeretimberg <evert.timberg@gmail.com>
Tue, 24 Nov 2015 02:54:45 +0000 (21:54 -0500)
src/core/core.legend.js

index e83f9de4aa1f10f591880bef5b2f6739dc3a9ac4..ab6943e89c0777a0066a54adfd4f5923889f031d 100644 (file)
 
                                                if (dataset.hidden) {
                                                        // Strikethrough the text if hidden
+                                                       ctx.beginPath();
                                                        ctx.moveTo(this.options.labels.boxWidth + (this.options.labels.fontSize / 2) + cursor.x, cursor.y + (this.options.labels.fontSize / 2));
                                                        ctx.lineTo(this.options.labels.boxWidth + (this.options.labels.fontSize / 2) + cursor.x + textWidth, cursor.y + (this.options.labels.fontSize / 2));
                                                        ctx.stroke();