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": 3, "width": 1, "height": 1, "data": [ {           "name": "highlights", "values": [{"id":"CA","v":"blue"},{"id":"AU","v":"purple"},{"id":"SE","v":"red"}] },       {            "name": "countries", "url": "wikiraw:///Extension:Graph/Demo/RawData:WorldMap-iso2-json", "format": {"type": "topojson", "feature": "countries"}, "transform": [ {                   "type": "geopath", "value": "data", "scale": 160, "translate":[0,0], "projection": "equirectangular" },               {                    "type": "lookup", "keys": [ "id" ], "on": "highlights", "onKey": "id", "as": [ "zipped" ], "default": { "v": "#C0C0C0" }               }            ]        }    ],    "marks": [ {           "type": "path", "from": { "data": "countries" },           "properties": { "enter": { "path": { "field": "layout_path" }               },                "update": { "fill": { "field": "zipped.v"                   } },               "hover": { "fill": { "value": "#989898" }               }            }        }    ] }