From 815a7ace1e02d692b49f6ff668357bd11cb67e53 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 20 Mar 2023 12:57:48 -0700 Subject: [PATCH] consistent order --- src/threshold/scott.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threshold/scott.js b/src/threshold/scott.js index 99cb219..2541d2d 100644 --- a/src/threshold/scott.js +++ b/src/threshold/scott.js @@ -3,5 +3,5 @@ import deviation from "../deviation.js"; export default function thresholdScott(values, min, max) { const c = count(values), d = deviation(values); - return d && c ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1; + return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1; }