From b3df572f31d6bf2ff83b89449b262bd50f7055a8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 5 Aug 2020 15:25:56 +1000 Subject: [PATCH] skip missing datapoints in hour graph --- ts/src/stats/hours.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/src/stats/hours.ts b/ts/src/stats/hours.ts index e56137f13..090367d35 100644 --- a/ts/src/stats/hours.ts +++ b/ts/src/stats/hours.ts @@ -156,6 +156,7 @@ export function renderHours( "d", area() .curve(curveBasis) + .defined((d) => d.totalCount > 0) .x((d: Hour) => { return x(d.hour.toString())! + x.bandwidth() / 2; })