mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Don't show detailed doughnut tooltip if sum is 99.99%
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -726,8 +726,7 @@ function updateSummaryData(runOnce) {
|
||||
function doughnutTooltip(tooltipLabel) {
|
||||
var percentageTotalShown = tooltipLabel.chart._metasets[0].total.toFixed(2);
|
||||
var label = " " + tooltipLabel.label;
|
||||
|
||||
if (percentageTotalShown >= 100) {
|
||||
if (percentageTotalShown >= 99.99) {
|
||||
// All items shown
|
||||
return label + ": " + tooltipLabel.parsed.toFixed(1) + "%";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user