Can not overlap barY and barY (but can dot and barY)?

Why I can not overlap two barY marks?

If I change the line:, {
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.

You can overlap multiple barYs. There must be some other problem. Can you share a version of your notebook that shows the problem you are talking about?

I did share it, but the title is not refreshed.
Here is the link again:

there is a working chart there, just try to change that line.
Thanks, BTW :slight_smile:

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?

Just my luck, my first plot and I hit a bug :-).
Thank you, I have filed it: Can not overlap barY and barY. · Issue #2016 · observablehq/plot · GitHub

1 Like