Skip to content

Expose Plot.channel and Plot.transform - #411

Merged
mbostock merged 11 commits into
mainfrom
fil/expose-transform-column
Mar 2, 2022
Merged

mbostock merged 11 commits into
mainfrom
fil/expose-transform-column

Conversation

@Fil

@Fil Fil commented May 19, 2021

Copy link
Copy Markdown
Contributor

helpers to create custom transforms (#170)

An example uses Plot.transform to create a uniform sample transform (diamond-carat-sampling)
An example of Plot.column is available at https://observablehq.com/@fil/plot-splom

@Fil
Fil requested a review from mbostock May 19, 2021 10:40
@Fil Fil mentioned this pull request May 19, 2021
@Fil
Fil force-pushed the fil/expose-transform-column branch from 0153e5d to 38c2452 Compare August 30, 2021 16:29
@Fil

Fil commented Aug 30, 2021

Copy link
Copy Markdown
Contributor Author

Rewritten; this time I've left out the renaming of maybeLazyChannel into column, and basic into transform, since it only creates merge conflicts. But when (if) we merge, it would be good to rename these functions internally.

@mbostock

mbostock commented Mar 1, 2022

Copy link
Copy Markdown
Member

Looks like the documentation needs updating here, since Plot.transform now takes (options, transform) rather than (...transforms)?

@mbostock

mbostock commented Mar 1, 2022

Copy link
Copy Markdown
Member

Also, do we want to expose maybeLazyChannel here, or lazyChannel? My inclination is that I’d prefer Plot.column to be an alias for the latter, so that a setter function is always returned (even if there is no source input).

@Fil
Fil force-pushed the fil/expose-transform-column branch from 38c2452 to 8dab9dc Compare March 2, 2022 10:12
@Fil

Fil commented Mar 2, 2022

Copy link
Copy Markdown
Contributor Author

rebased with fixes to the documentation and adoption of lazyChannel instead of maybeLazyChannel.

@mbostock
mbostock merged commit a1699be into main Mar 2, 2022
@mbostock
mbostock deleted the fil/expose-transform-column branch March 2, 2022 18:20
@mbostock mbostock changed the title Expose Plot.column and Plot.transform Expose Plot.channel and Plot.transform Mar 2, 2022
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.

2 participants