Skip to content

For quantitative values, the directionality for yOffset is reversed compared to y #9816

@joelostblom

Description

@joelostblom

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
Image Image

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
Image Image

The expected behavior with and quantitative yOffset would be to match that of a quantitative y encoding, i.e. a bottom to top directionality:

Image

Open the Chart in the Vega Editor (will work as intended after PR #9817)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions