If you donât give x1 nor x2 then the rule will span the whole chart. If you give x2, youâre saying where to stop, but not where to start. If you also specify x1, then it works:
I think that the nuance is not ruleX vs ruleY, but the fact that the scale for x is ordinal (for a continuous scale, we can attribute a default x1 = 0).
making the rule marks intersect
the x scale is a band scale (because weâre drawing bars), so it has a bandwidth; you can eliminate it by adding
insetLeft: 9.5
It could be nice for this particular use case to have a mark option to ignore the bandwidth (or collapse it to zero).