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",
area<Hour>()
.curve(curveBasis)
.defined((d) => d.totalCount > 0)
.x((d: Hour) => {
return x(d.hour.toString())! + x.bandwidth() / 2;
})