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

stacking segments #2236

Open
Fil opened this issue Nov 15, 2024 · 1 comment
Open

stacking segments #2236

Fil opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Nov 15, 2024

The stack transform could be extended from point bases to segment bases, where something extends from start to end.

Various kinds of outputs can be generated, depending on what we want to achieve:

  • a single value y for each segment (piling up straight segments into "lanes")
  • a series of (x, y) values for each segment (typically for a burndown chart)
  • a series of (x, y) values, with a reducer such as "max" or "sum" (typically for a coverage chart)

Prior art:

lanes
lanes

coverage
coverage

burndown
burndown

@Fil Fil added the enhancement New feature or request label Nov 15, 2024
@mbostock
Copy link
Member

I think maybe the lanes and burndown approaches are (structurally) different, i.e., perhaps they should be done by different transforms: the burndown approach will require an area mark to render, whereas the lanes approach can be rendered with a rect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants