From 86ae288486092d268b59ad6a2053714110f246db Mon Sep 17 00:00:00 2001 From: gvreddy04 Date: Fri, 27 Feb 2026 12:26:33 +0530 Subject: [PATCH] Fix lineWidth typo and adjust ctx.restore() placement Corrected canvas context property from linewidth to lineWidth for proper line rendering. Moved ctx.restore() to after both drawing operations to ensure canvas state is restored correctly. --- blazorbootstrap/wwwroot/blazor.bootstrap.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/blazorbootstrap/wwwroot/blazor.bootstrap.js b/blazorbootstrap/wwwroot/blazor.bootstrap.js index 7d86c7fda..545eef466 100644 --- a/blazorbootstrap/wwwroot/blazor.bootstrap.js +++ b/blazorbootstrap/wwwroot/blazor.bootstrap.js @@ -1423,18 +1423,17 @@ window.blazorChart.line = { ctx.setLineDash([5, 5]); ctx.moveTo(activePoint.element.x, chart.chartArea.top); ctx.lineTo(activePoint.element.x, activePoint.element.y); - ctx.linewidth = 2; + ctx.lineWidth = 2; ctx.strokeStyle = 'grey'; ctx.stroke(); - ctx.restore(); ctx.beginPath(); - ctx.setLineDash([5, 5]); ctx.moveTo(activePoint.element.x, activePoint.element.y); ctx.lineTo(activePoint.element.x, chart.chartArea.bottom); - ctx.linewidth = 2; + ctx.lineWidth = 2; ctx.strokeStyle = 'grey'; ctx.stroke(); + ctx.restore(); } },