diff --git a/src/ui/histogram.ts b/src/ui/histogram.ts index e641237..2df4dd2 100644 --- a/src/ui/histogram.ts +++ b/src/ui/histogram.ts @@ -24,7 +24,7 @@ class HistogramData { let min, max, i; for (i = 0; i < count; i++) { const v = valueFunc(i); - if (v !== undefined) { + if (v !== undefined && !isNaN(v)) { min = max = v; break; }