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
This bug appears only in a narrow condition which happens to be fairly important to us, and which was enabled by this PR (cc @kanitw!). A very stripped-down example is as follows (link to editor). Setting encoding.x.bandPosition: 0 causes the bars to disappear, possibly because the resulting Vega spec has data entries that refer to each other out of order. Certainly VegaFusion rejects the resulting Vega spec because of this issue.
This doesn't happen with a single layer or a single mark per layer, or if the two layers have different transform values 🤪 or if the transforms are hoisted up to the top level.
The actual spec we're working contains more repetition, like this, but the bug is the same.
Here is the offending Vega code that gets generated when bandPosition is set to 0. It looks like data_0 refers to source_0 which doesn't contain year_date or the other date-derived fields, which are in data_1:
Bug Description
This bug appears only in a narrow condition which happens to be fairly important to us, and which was enabled by this PR (cc @kanitw!). A very stripped-down example is as follows (link to editor). Setting
encoding.x.bandPosition: 0
causes the bars to disappear, possibly because the resulting Vega spec hasdata
entries that refer to each other out of order. Certainly VegaFusion rejects the resulting Vega spec because of this issue.This doesn't happen with a single
layer
or a singlemark
perlayer
, or if the twolayers
have differenttransform
values 🤪 or if thetransform
s are hoisted up to the top level.The actual spec we're working contains more repetition, like this, but the bug is the same.
Here is the offending Vega code that gets generated when
bandPosition
is set to0
. It looks likedata_0
refers tosource_0
which doesn't containyear_date
or the other date-derived fields, which are indata_1
:Checklist
The text was updated successfully, but these errors were encountered: