vega / vega-lite

A concise grammar of interactive graphics, built on Vega.
https://vega.github.io/vega-lite/
BSD 3-Clause "New" or "Revised" License
4.65k stars 606 forks source link

Default projection changes when `repeat` is used with the geoshape mark #9303

Open joelostblom opened 6 months ago

joelostblom commented 6 months ago

Bug Description

The default projection for geoshape marks is equalEarth since #7052:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 500,
  "height": 300,
  "data": {
    "url": "data/world-110m.json",
    "format": {"type": "topojson", "feature": "countries"}
  },
  "mark": {"type": "geoshape", "fill": "lightgray", "stroke": "gray"}
}

image Open the Chart in the Vega Editor

However, when repeat is included in the spec, the projection changes back to the old mercator default:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "repeat": {},
  "spec": {
    "width": 500,
    "height": 300,
    "data": {
      "url": "data/world-110m.json",
      "format": {"type": "topojson", "feature": "countries"}
    },
    "mark": {"type": "geoshape", "fill": "lightgray", "stroke": "gray"}
  }
}

image Open the Chart in the Vega Editor

This should not happen; equalEarth should be the default even when repeat is used.

joelostblom commented 6 months ago

This also happens with concat