Extension:Graph/Demo/MapTemplate

{   "width": 700, "height": 380, "data": [ {           "name": "highlights", "values": },       {            "name": "countries", "url": "/wiki/RawData:WorldMap-iso2-json?action=raw", "format": {"type": "topojson", "feature": "countries"}, "transform": [ {                   "type": "geopath", "value": "data", "projection": "equirectangular" },               {                    "type": "zip", "key": "data.id", "with": "highlights", "withKey": "data.", "as": "zipped", "default": { "data": { "": 0 }} }           ]        }    ],  "scales": [ {     "name": "color", "type": "quantize", "domain": {"data": "highlights", "field": "data."}, "range": [] } ],    "marks": [ {           "type": "path", "from": { "data": "countries" },           "properties": { "enter": { "path": { "field": "path" }               },                "update": { "fill": {"scale":"color", "field":"zipped.data."} }, "hover": { "fill": { "value": "#989898" }               }            }        }    ] } params:
 * 1) page with the data (csv, default = RawData:WorldMap-iso2-population-csv)
 * 2) country code column (default = cc)
 * 3) value column (default = value)
 * 4) list of colors, e.g. "#F2F2AB","#F1E9A4","#F0E09D",...