From c5d81afdf6c78e90b1d364fc9cff54e62683a78f Mon Sep 17 00:00:00 2001 From: alexay7 Date: Wed, 5 Jun 2024 02:46:29 +0200 Subject: [PATCH] Filter days with no plays from heatmap --- AquaNet/src/libs/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AquaNet/src/libs/ui.ts b/AquaNet/src/libs/ui.ts index 92dcb7a2..f717ba5a 100644 --- a/AquaNet/src/libs/ui.ts +++ b/AquaNet/src/libs/ui.ts @@ -95,7 +95,7 @@ export function renderCal(el: HTMLElement, d: { date: any, value: any }[]): Prom radius: 2, width: 11, height: 11, gutter: 4 }, range: 12, - data: { source: d, x: 'date', y: 'value' }, + data: { source: d.filter(x => x.value > 0), x: 'date', y: 'value' }, scale: { color: { type: 'linear',