Skip to content

Repeat spec with shared encoding does not replace repeat #8734

@domoritz

Description

@domoritz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛P2Important Issues that should be fixed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions