Fix issue rendering undefined points in Histogram
parent
2aef8e8eef
commit
b073c84b7e
|
@ -70,7 +70,14 @@ export const bin = (
|
|||
for (let i = 0; i < xCol.length; i++) {
|
||||
const x = xCol[i]
|
||||
|
||||
if (x < xDomain[0] || x > xDomain[1]) {
|
||||
const shouldSkipPoint =
|
||||
x === undefined ||
|
||||
x === null ||
|
||||
isNaN(x) ||
|
||||
x < xDomain[0] ||
|
||||
x > xDomain[1]
|
||||
|
||||
if (shouldSkipPoint) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue