-
Notifications
You must be signed in to change notification settings - Fork 182
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
Labels
bug
Something isn’t working
Comments
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
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?"
The text was updated successfully, but these errors were encountered: