Adjacent boxplots or multiple facets on one axis

The “fill” argument for box mark stacks boxplots above each other. Is it possible to have them adjacent to each other so don’t overlap?

Here is an example working document: Adjacent boxplots / workbook | Observable

In this example, I want the y axis to be a continuous variable. And I want to display boxplots showing three categorical variables: depth, clarity and color. If I could facet three variables on the x axis, that would work too.

One option would be to concatenate depth, clarity and color to create a new variable and use that to facet on x, but that’s too messy and the visual grouping is lost.

It’s certainly technically feasible to “shift” each mark based on a variable, but isn’t that going too many encodings on a single chart?

Anyway, we’re trying to centralize Plot-related questions on GitHub discussions. Would you mind opening the question there?

Will do. Thanks.