From 94517a0ef4b7f98576e635ff304421a1ed64a1b6 Mon Sep 17 00:00:00 2001 From: oOHiyoriOo Date: Sat, 13 Jun 2026 18:40:57 +0200 Subject: [PATCH] fix: players donut uses more space with tight margins Reduced pie chart margins from 75px to 5px and moved labels inside the donut (.donutLabelsOutside(false)) so the chart fills the available card width instead of being squeezed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- js/pages/serverInfo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/pages/serverInfo.js b/js/pages/serverInfo.js index 6dc3884..592ec48 100644 --- a/js/pages/serverInfo.js +++ b/js/pages/serverInfo.js @@ -94,10 +94,11 @@ function ServerInfoPage(params, container) { .y(function (d) { return d.y; }) .showLabels(true) .donut(true) + .donutLabelsOutside(false) .duration(500) .height(250) .color(['#a78bfa', '#7c3aed', '#e879f9', '#2d1f3d']) - .margin({ top: 0, right: 75, bottom: 0, left: 75 }); + .margin({ top: 5, right: 5, bottom: 5, left: 5 }); playersChart.pie.startAngle(function (d) { return d.startAngle / 2 - Math.PI / 2; }); playersChart.pie.endAngle(function (d) { return d.endAngle / 2 - Math.PI / 2; });