Fix donut chart using h instead of %

This commit is contained in:
Oracle 2026-06-15 11:33:53 +02:00
parent f6d1f167f5
commit dc4efbea58
Signed by: Oracle
SSH key fingerprint: SHA256:x4/RtnjUyuHkdvmwNDsWSfcfF1V5PNr3OpriZqOvCX8

View file

@ -331,7 +331,7 @@ const TOKEN = import.meta.env.PUBLIC_ACCESS_TOKEN || '';
colors: ['#22c55e', '#3b82f6'],
fill: { type: 'solid', opacity: 0.9 },
legend: { position: 'bottom', labels: { colors: '#a0a0b8' } },
dataLabels: { formatter: function(val) { return val.toFixed(1) + 'h'; } },
dataLabels: { formatter: function(val) { return val.toFixed(1) + '%'; } },
stroke: { width: 2, colors: ['#0d0d1a'] },
tooltip: { formatter: function(val) { return formatDuration(val / 100 * (issuesTotal + prsTotal)); } }
}).render();