User:Lokal Profil/maptemplate

{   "version": 1, "width": , "height": , "data": [ {           "name": "highlights", "values": },       {            "name": "countries", "url": "/wiki/Extension:Graph/Demo/RawData:WorldMap-iso2-json?action=raw", "format": {"type": "topojson", "feature": "countries"}, "transform": [ {                   "type": "geopath", "value": "data", "scale": , "translate":[0,0], "projection": "equirectangular" },               {                    "type": "zip", "key": "data.id", "with": "highlights", "withKey": "data.id", "as": "zipped", "default": { "data": { "v": 0 }} }           ]        }    ],    "scales": [ {           "name": "color", "type": "", "domain": {"data": "highlights", "field": "data.v"}, "zero": true, "range": }   ],    "legends": [ {           "fill": "color", "title": "", "properties": { "gradient": { "stroke": {"value": "transparent"} },               "title": { "fontSize": {"value": 14} },           }        }    ],    "marks": [ {           "type": "path", "from": { "data": "countries" },           "properties": { "enter": { "path": { "field": "path" }               },                "update": { "fill": {"scale":"color", "field":"zipped.data.v"} }, "hover": { "fill": { "value": "#989898" }               }            }        }    ] }

params: Optional params:
 * 1) source data (default =  )
 * The data source must contain two columns: 'id' and 'v'
 * type: linear, log, pow, sqrt, quantile, quantize, or threshold
 * colors: list of colors, e.g. ["#F2F2AB","#F1E9A4","#F0E09D",...]
 * width (1 by default)
 * height (1 by default)
 * scale (100 by default)