这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mbostock
Copy link
Member

@mbostock mbostock commented Oct 1, 2021

No description provided.

@mbostock mbostock marked this pull request as ready for review October 1, 2021 04:08
@mbostock mbostock requested a review from Fil October 1, 2021 04:08
Copy link
Member

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If we ever want to add a ties option, and the accessor as a string (#189),
the API would then become:
d3.rank(iterable[, accessor[, ties]])
(i.e. no ties without an accessor).

(Another possibility would be to name different methods: d3.rankOrder, etc.)

@Fil Fil merged commit 5101792 into fil/rank Oct 1, 2021
@Fil Fil deleted the mbostock/rank branch October 1, 2021 12:44
@Fil Fil mentioned this pull request Oct 1, 2021
34 tasks
mbostock added a commit that referenced this pull request Oct 1, 2021
* only implement “low” ties strategy
* only test “low” ties strategy
* only allow iterables
* adopt Float64Array.of
* documentation: remove ties; observablehq/@d3/rank
Co-authored-by: Philippe Rivière <fil@rezo.net>
mbostock added a commit that referenced this pull request Oct 1, 2021
* rank

* only implement “low” ties strategy (#236)

* only implement “low” ties strategy
* only test “low” ties strategy
* only allow iterables
* adopt Float64Array.of
* documentation: remove ties; observablehq/@d3/rank
Co-authored-by: Philippe Rivière <fil@rezo.net>

* not an iterator

* main

* tweak tests

Co-authored-by: Mike Bostock <mbostock@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants