User:Quiddity (WMF)/sandbox

world map mapframe test
 [ { "type": "ExternalData", "service": "geoshape", "ids": "Q16" }, { "type": "ExternalData", "service": "geoshape", "ids": "Q34" }, { "type": "ExternalData", "service": "geoshape", "ids": "Q408" } ]

world map graph test
{ "version": 2, "width": 1, "height": 1, "data": [ {     "name": "highlights", "values": [ {"id": "CA","color": "blue"}, {"id": "AU","color": "purple"}, {"id": "SE","color": "red"} ]   },    {      "name": "countries", "url": "map:///Naturalearthdata.com/admin-0-countries-no-antarctica.map", "format": {"type": "json","property": "data.features"}, "transform": [ {         "type": "geopath", "value": "data", "scale": 160, "translate": [0,0], "projection": "equirectangular" },       {          "type": "lookup", "keys": ["properties.iso_a2"], "on": "highlights", "onKey": "id", "as": ["zipped"], "default": {"color": "#C0C0C0"} }     ]    }  ],  "marks": [ {     "type": "path", "from": {"data": "countries"}, "properties": { "enter": {"path": {"field": "layout_path"}}, "update": {"fill": {"field": "zipped.color"}}, "hover": {"fill": {"value": "#989898"}} }   }  ] }