From 132324f5b8cdd6965a308b2112a91e8aa3a22000 Mon Sep 17 00:00:00 2001 From: Bogdan Korshunov <49434029+bogdankorshunov@users.noreply.github.com> Date: Mon, 7 Aug 2023 23:16:32 +0500 Subject: [PATCH] BorderRadius of Bar Chart issue on Firefox 116 (#11435) Co-authored-by: bogdankorshunov --- src/helpers/helpers.canvas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/helpers.canvas.ts b/src/helpers/helpers.canvas.ts index 5221c438c26..a959d1dea1d 100644 --- a/src/helpers/helpers.canvas.ts +++ b/src/helpers/helpers.canvas.ts @@ -498,7 +498,7 @@ export function addRoundedRectPath( const {x, y, w, h, radius} = rect; // top left arc - ctx.arc(x + radius.topLeft, y + radius.topLeft, radius.topLeft, -HALF_PI, PI, true); + ctx.arc(x + radius.topLeft, y + radius.topLeft, radius.topLeft, 1.5 * PI, PI, true); // line from top left to bottom left ctx.lineTo(x, y + h - radius.bottomLeft);