Skip to content

Commit b6446ea

Browse files
committed
allow disabling the implicit ordinal domain sorting
1 parent 6465bc4 commit b6446ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/helpers/scales.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ export function createScale<T extends ScaleOptions>(
285285
if ((name === 'x' || name === 'y') && scaleOptions.sort) {
286286
sortOrdinalDomain = true;
287287
}
288+
if ((name === 'x' || name === 'y') && scaleOptions.sort === false) {
289+
sortOrdinalDomain = false;
290+
}
288291

289292
// construct domain from data values
290293
const valueArr = [...dataValues.values(), ...(scaleOptions.domain || [])].filter(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy