Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x and y reducers for group and hexbin #1916

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Nov 3, 2023

Fixes #1530.

@mbostock mbostock requested a review from Fil November 3, 2023 16:21
@mbostock mbostock mentioned this pull request Nov 3, 2023
9 tasks
@mbostock mbostock changed the title x and y reducers for group x and y reducers for group and hexbin Nov 4, 2023
@mbostock mbostock force-pushed the mbostock/group-reduce-xy branch 2 times, most recently from 22fd001 to 9672349 Compare November 4, 2023 16:11
Comment on lines +71 to +72
// TODO scope
// TODO label
Copy link
Contributor

Choose a reason for hiding this comment

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

This made me think of how we would type the reduceIndex method for scope = "data" or "facet". Maybe something like the following, but it seems a bit messy:

  reduceIndex(
    index: number[],
    values: undefined | S[],
    valueOrExtent: any | {data: any[]},
    maybeExtent: undefined | {data: any[]}
  ): T;

@mbostock mbostock force-pushed the mbostock/group-reduce-xy branch from 9672349 to 3f20fe1 Compare November 7, 2023 17:12
@mbostock mbostock enabled auto-merge (squash) November 7, 2023 17:13
@mbostock mbostock merged commit c6c1bcd into main Nov 7, 2023
1 check passed
@mbostock mbostock deleted the mbostock/group-reduce-xy branch November 7, 2023 17:16
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
* x and y reducers for group

* x and y reducers for hexbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The group and hexbin transforms could support x and y reducers
2 participants