Skip to content

rename transforms #104

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

Closed
wants to merge 1 commit into from
Closed

rename transforms #104

wants to merge 1 commit into from

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Jan 22, 2021

Fixes #145.

Transformed marks now use the naming convention {transform}{mark}, making the underlying type of mark clearer, and also allowing the transforms to have simpler names.

Transforms:

  • bin1 ↦ bin
  • bin2 ↦ bin
  • group1 ↦ group
  • group2 ↦ group

Marks:

  • bin ↦ binRect
  • binY ↦ binRectX
  • binX ↦ binRectY
  • group ↦ groupCell
  • groupY ↦ groupBarX
  • groupX ↦ groupBarY

What do you think? Good idea? Bad? 👍 👎

@mbostock mbostock requested a review from Fil January 22, 2021 22:45
@mbostock mbostock force-pushed the mbostock/transform-rename branch 2 times, most recently from 4216521 to a3ebcf2 Compare January 22, 2021 22:49
@mbostock mbostock force-pushed the mbostock/transform-rename branch from a3ebcf2 to 70e99dd Compare January 22, 2021 22:51
@Fil
Copy link
Contributor

Fil commented Jan 23, 2021

👍 I vote it up, as it makes more intuitive sense to me to imagine the y meaning "variable height bars" (ie. "group stuff to make vertical bars" rather than "group on horizontal"). And it indicates that we have "transform then mark", a notion which isn't present in the binX/groupX notation.

@Fil
Copy link
Contributor

Fil commented Feb 10, 2021

Related: sources of confusion with y marks.

@mbostock
Copy link
Member Author

Superseded by #176.

@mbostock mbostock closed this Feb 27, 2021
@mbostock mbostock deleted the mbostock/transform-rename branch February 27, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants