vega / vegafusion

Serverside scaling for Vega and Altair visualizations
https://vegafusion.io
BSD 3-Clause "New" or "Revised" License
303 stars 15 forks source link

Fix projection pushdown with offset encodings #489

Closed jonmmease closed 1 month ago

jonmmease commented 1 month ago

Fix projection pushdown to detect column usage inside the offset encoding inside a parent position encoding. For example:

          "x": {
            "value": 0,
            "offset": {
              "scale": "x", "field": "Horsepower"
            }
          }

I don't see documentation for this in https://vega.github.io/vega-lite/docs/encoding.html#position, but Vega-Lite produces it sometimes.