This website is for Vega-Lite v4. Go to the main Vega-Lite homepage for the latest release.

Geoshape

Edit this page
// Single View Specification
{
  "data": ... ,
  "mark": "geoshape",
  "encoding": ... ,
  ...
}

The geoshape mark represents an arbitrary shapes whose geometry is determined by specified GeoJSON shape data that is projected from geographical coordinates to pixels.

Here are an example choropleth making use of geoshape marks:

Geoshape Config

// Top-level View Specification
{
  ...
  "config": {
    "geoshape": ...,
    ...
  }
}

The geoshape property of the top-level config object sets the default properties for all geoshape marks. If mark property encoding channels are specified for marks, these config values will be overridden.

For the list of all supported properties, please see the mark config documentation.