Skip to content

Commit

Permalink
fix: quantile scale domain calculate (#6126)
Browse files Browse the repository at this point in the history
* fix: quantile scale  domain should‘t do repeated operations

* test: update snapshots
  • Loading branch information
lvisei authored Mar 14, 2024
1 parent 4d94042 commit e8192d2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/runtime/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function inferDomainC(values: Primitive[][]) {
}

function inferDomainO(values: Primitive[][]) {
return inferDomainC(values).sort();
return values.flat().sort();
}

function inferDomainS(values: Primitive[][]) {
Expand Down

0 comments on commit e8192d2

Please sign in to comment.