skip missing datapoints in hour graph

This commit is contained in:
Damien Elmes 2020-08-05 15:25:56 +10:00
parent 32612fc84c
commit b3df572f31

View File

@ -156,6 +156,7 @@ export function renderHours(
"d", "d",
area<Hour>() area<Hour>()
.curve(curveBasis) .curve(curveBasis)
.defined((d) => d.totalCount > 0)
.x((d: Hour) => { .x((d: Hour) => {
return x(d.hour.toString())! + x.bandwidth() / 2; return x(d.hour.toString())! + x.bandwidth() / 2;
}) })