The x encoding direction along the axis/domain is left to right for both categorical and quantitative values. The y-axis direction is top to bottom for categorical values, the direction is bottom to top for quantitative values:
| Expected |
Expected |
 |
 |
Confusingly, while the xOffset encoding mimics the behavior of the regular x encoding, the yOffset encoding does not follow the behavior of the y encoding. Instead, the yOffset direction is top to bottom for both categorical and quantitative values:
| Expected |
NOT expected |
 |
 |
The expected behavior with and quantitative yOffset would be to match that of a quantitative y encoding, i.e. a bottom to top directionality:
Open the Chart in the Vega Editor (will work as intended after PR #9817)
The
xencoding direction along the axis/domain is left to right for both categorical and quantitative values. The y-axis direction is top to bottom for categorical values, the direction is bottom to top for quantitative values:Confusingly, while the
xOffsetencoding mimics the behavior of the regularxencoding, theyOffsetencoding does not follow the behavior of theyencoding. Instead, theyOffsetdirection is top to bottom for both categorical and quantitative values:The expected behavior with and quantitative
yOffsetwould be to match that of a quantitativeyencoding, i.e. a bottom to top directionality:Open the Chart in the Vega Editor (will work as intended after PR #9817)