Skip to content

Test the data output of bin and group transforms - #2491

Open
AmanBoronbaev wants to merge 1 commit into
observablehq:mainfrom
AmanBoronbaev:tests/bin-group-data-reducers
Open

AmanBoronbaev wants to merge 1 commit into
observablehq:mainfrom
AmanBoronbaev:tests/bin-group-data-reducers

Conversation

@AmanBoronbaev

Copy link
Copy Markdown

The data output determines which datum later channel accessors receive. The new binX test gathers row IDs into a string, with two facets sharing a bin interval. The groupX test selects the first row in each group and reads a named field from it. Both check that the independent count channel still counts all input rows.

The bin and group docs now show how {data: "first"} changes what comes into a downstream accessor.

Closes #1067. The full suite passed (1,353 tests, two skipped), including type checking. The documentation builds, and ESLint and Prettier pass on both test files.

This branch has not been deployed

No deployments
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.

Add a test for reduceData in bin and group

1 participant