From 29e94ff52844a88d2e745c514723417375eae175 Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 11 Sep 2024 23:00:42 +0200 Subject: [PATCH] doughnut label count positioning fixed --- statslib/chartjs-lib/plugin-doughnutlabels.js | 1 + 1 file changed, 1 insertion(+) diff --git a/statslib/chartjs-lib/plugin-doughnutlabels.js b/statslib/chartjs-lib/plugin-doughnutlabels.js index a175dca8..ff955262 100644 --- a/statslib/chartjs-lib/plugin-doughnutlabels.js +++ b/statslib/chartjs-lib/plugin-doughnutlabels.js @@ -114,6 +114,7 @@ export const tsDoughnutLabelsLine = { xLine = xLine - Math.abs(2 * ( x - xLine )); //yLine = y >= halfheight ? y + 20 : y - 20; extraLine = -extraLine; + is_dx = !is_dx; } ctx.beginPath();