mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
skip missing datapoints in hour graph
This commit is contained in:
parent
32612fc84c
commit
b3df572f31
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue