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

Can not overlap barY and barY. #2016

Closed
mekterovic opened this issue Mar 11, 2024 · 1 comment · Fixed by #2028
Closed

Can not overlap barY and barY. #2016

mekterovic opened this issue Mar 11, 2024 · 1 comment · Fixed by #2028
Assignees
Labels
bug Something isn’t working

Comments

@mekterovic
Copy link

Can not overlap (faceted) barY and barY (but can dot and barY).

Working demo is here: https://talk.observablehq.com/t/can-not-overlap-bary-and-bary-but-can-dot-and-bary/8903

If I change the line:
Plot.dot(data2, {
to:
Plot.barY(data2, {
it fails with: TypeError: Cannot read properties of undefined (reading 'constructor')

So, dot+dot, and dot+barY works, but barY+barY does not.

mbostock advised to file as a bug with the following comment:

"This might be a bug in Plot when the two bar marks have different faceting. One has fx and fy; the other only fx. So, the one with only fx needs to be repeated across the fy facets. Can you file a bug on the Plot repo?"

@mbostock mbostock self-assigned this Mar 21, 2024
@mbostock mbostock added the bug Something isn’t working label Mar 21, 2024
@mbostock
Copy link
Member

This is a bug with the stack transform during faceting (which is used implicitly by the bar mark, but not the dot mark).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants