Skip to content

Instantly share code, notes, and snippets.

@davclark
Created December 24, 2013 21:41
Show Gist options
  • Save davclark/8118045 to your computer and use it in GitHub Desktop.
Save davclark/8118045 to your computer and use it in GitHub Desktop.
Example vega.json file that doesn't work
{
"axes": [],
"data": [
{
"format": {
"feature": "world-countries",
"type": "topojson"
},
"name": "countries",
"transform": [
{
"projection": "winkel3",
"scale": 200,
"translate": [
480,
250
],
"type": "geopath",
"value": "data"
}
],
"url": "vincent_map_data/world-countries.topo.json"
}
],
"height": 500,
"legends": [],
"marks": [
{
"from": {
"data": "countries"
},
"properties": {
"enter": {
"path": {
"field": "path"
},
"stroke": {
"value": "#000000"
}
},
"update": {
"fill": {
"value": "steelblue"
}
}
},
"type": "path"
}
],
"padding": {
"bottom": 50,
"left": 50,
"right": 100,
"top": 10
},
"scales": [],
"width": 960
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment