You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying issue is that the invert.js code expects a scale.invert function. But cell marks use d3.scaleBand, which doesn't have a invert function. Here's a quick monkeypatch/proof-of-concept fix (I don't make any adjustments for pixelSize; also note that this won't work if the domain isn't sorted low to high):
Thanks! And, yes, this is a known limitation. Interval interactors are currently only valid over a continuous domain.
Long ago in Vega I implemented inversion methods for ordinal band and point scales, but they were not accepted into D3 and so unfortunately not available by default here, either. We could consider bringing custom logic into the interval implementation, assuming we can properly accept the scale type. Or, at minimum, we should check the scale type and proactively raise helpful error messages.
The underlying issue is that the
invert.js
code expects ascale.invert
function. But cell marks used3.scaleBand
, which doesn't have ainvert
function. Here's a quick monkeypatch/proof-of-concept fix (I don't make any adjustments forpixelSize
; also note that this won't work if the domain isn't sorted low to high):invert.js
The text was updated successfully, but these errors were encountered: