mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix draw issue
This commit is contained in:
parent
10d056a4d1
commit
ea15aaaec2
@ -285,6 +285,7 @@
|
||||
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user