From 1c811361702629ad9fd68a1324c8d0447e1f5656 Mon Sep 17 00:00:00 2001 From: Julien Gaffuri <4315279+jgaffuri@users.noreply.github.com> Date: Fri, 31 Jan 2025 10:46:32 +0100 Subject: [PATCH] Update ternary.js --- src/utils/ternary.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/ternary.js b/src/utils/ternary.js index 0d1aac572..2b29b3760 100644 --- a/src/utils/ternary.js +++ b/src/utils/ternary.js @@ -130,6 +130,11 @@ export const ternaryColorClassifier = (properties, totalFunction, colors, opts = return fun } + + + +// OLD VERSIONS + /* const orderedIndexesDec = arr => [...arr.keys()].sort((a, b) => arr[b] - arr[a]); const orderedIndexesInc = arr => [...arr.keys()].sort((a, b) => arr[a] - arr[b]);