-
Notifications
You must be signed in to change notification settings - Fork 185
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
Area + interval creates a spurious series #1775
Labels
bug
Something isn’t working
Comments
mbostock
changed the title
area + interval creates a spurious series
Area + interval creates a spurious series
Aug 14, 2023
to double-check the fix in the notebook above, create this cell: |
mbostock
added a commit
that referenced
this issue
Aug 26, 2023
* Empty bins fall back on the first element of their group for z, stroke and fill closes #1775 * test edge case --------- Co-authored-by: Mike Bostock <mbostock@gmail.com>
chaichontat
pushed a commit
to chaichontat/plot
that referenced
this issue
Jan 14, 2024
…q#1837) * Empty bins fall back on the first element of their group for z, stroke and fill closes observablehq#1775 * test edge case --------- Co-authored-by: Mike Bostock <mbostock@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as reported by @yurivish in https://observablehq.com/d/3264dbb558b44080, the following chart creates a spurious series, with a color (stroke) that is undefined. I've tweaked Yuri’s example to make the issue more visually salient, and to clarify that it is not the mix of z and fill that creates the problem. Inspecting the channels with mark.initialize reveals that the fill channel is ["A", "A"…, "B", "B", ...], but the stroke channel is full of [undefined, undefined…, "A", …, "B", …].
The text was updated successfully, but these errors were encountered: