vega-lite icon indicating copy to clipboard operation
vega-lite copied to clipboard

Repeat spec with shared encoding does not replace repeat

Open domoritz opened this issue 2 years ago • 2 comments

In

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {"url": "data/movies.json"},
  "repeat": {"column": ["US Gross", "Worldwide Gross"]},
  "spec": {
    "encoding": {
      "x": {"bin": true, "field": "IMDB Rating", "type": "quantitative"},
      "y": {
        "aggregate": "mean",
        "field": {"repeat": "column"},
        "type": "quantitative",
        "title": "Mean of US and Worldwide Gross"
      },
      "color": {"datum": {"repeat": "column"}, "type": "nominal"}
    },
    "layer": [
      {"name": "foo", "mark": "line"},
      {"name": "bar", "mark": "point"}
    ]
  }
}

the {"repeat": "column"} is not replaced in the normalized spec.

domoritz avatar Feb 20 '23 21:02 domoritz

I think this issue is solved in examples/specs/normalized/repeat_layer_normalized.vl.json

ChiaLingWeng avatar Jan 24 '24 12:01 ChiaLingWeng

It's not fixed in the Vega-Lite compiler, right? Open the Chart in the Vega Editor

Screenshot 2024-01-30 at 11 29 46

domoritz avatar Jan 30 '24 16:01 domoritz