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
Here I have set the domain of the colour channel. The order of the values [Present, Missing] is reflected in the legend as a result. However, the order of the stacked bars themselves is unchanged. The order of the stacked bars will always have "Missing" nearest the axis, regardless of domain order - presumably it is ordering the values alphabetically. In this case I would like "Present" to be the bar value nearest the axis.
Is this expected behaviour? The docs I found said that the stack order defaults to the stack grouping field, so I would have expected setting the domain on the channel to affect the default stack order.
Checklist
- [ x] I checked for duplicate issues.
The text was updated successfully, but these errors were encountered:
Bug Description
If create a bar chart, and set the color channel to a field, I will get a stacked bar chart like so:
Open the Chart in the Vega Editor
Here I have set the domain of the colour channel. The order of the values [Present, Missing] is reflected in the legend as a result. However, the order of the stacked bars themselves is unchanged. The order of the stacked bars will always have "Missing" nearest the axis, regardless of domain order - presumably it is ordering the values alphabetically. In this case I would like "Present" to be the bar value nearest the axis.
Is this expected behaviour? The docs I found said that the stack order defaults to the stack grouping field, so I would have expected setting the domain on the channel to affect the default stack order.
- [ x] I checked for duplicate issues.Checklist
The text was updated successfully, but these errors were encountered: