Closed sharlagelfand closed 2 years ago
@sharlagelfand , grid generation works correctly. It is the vega that sorts <
(less than sign) at the end. If you try and remove this sign and put only 18, it works correctly. Let me find out how we can force vega to not to sort like that.
Ok, facet declaration has sort
field:
Adding datamations_order
to grid generation function and assigning sort
to facets:
Which fixes the issue:
@sharlagelfand you don't need to change anything on your side for this.
great, thanks @giorgi-ghviniashvili!
@giorgi-ghviniashvili I noticed that the info grid generation does not maintain the order of groups as it is in the data passed, e.g. data like this:
with these specs:
results in a vega lite plot that looks like this:
with these specs:
What's the best way to ensure the order of the groups? I can pass an array that specifies the order they should go in if that's easiest (and maybe more generalizable than just going with the order that the data is in)