Changes

Created page with "<includeonly>{{#tag:graph|</includeonly><noinclude>{{:{{FULLPAGENAME}} }}<br>'''<graph>'''{{#tag:syntaxhighlight|</noinclude>{ "version": 2, "width": {{{width|1}}},..."
<includeonly>{{#tag:graph|</includeonly><noinclude>{{:{{FULLPAGENAME}} }}<br>'''&lt;graph>'''{{#tag:syntaxhighlight|</noinclude>{
"version": 2,
"width": {{{width|1}}},
"height": {{{height|1}}},
"data": [
{
"name": "highlights",
"values": {{{1|{{#invoke:Graph:Utils|expandDict|{"BR":"pink","US":"blue","CN":"red","DZ":"green","AU":"purple"} }}}}}
},
{
"name": "countries",
"url": "wikiraw:https://www.mediawiki.org/Extension:Graph/Demo/RawData:WorldMap-iso2-json",
"format": {"type": "topojson", "feature": "countries"},
"transform": [
{
"type": "geopath",
"value": "data",
"scale": {{{scale|80}}},
"translate":[0,0],
"projection": "{{{projection|equirectangular}}}"
},
{
"type": "lookup",
"keys": [ "id" ],
"on": "highlights",
"onKey": "id",
"as": [ "zipped" ],
"default": {
"v": "{{{default|#C0C0C0}}}"
}
}
]
}
],
"marks": [
{
"type": "path",
"from": {
"data": "countries"
},
"properties": {
"enter": {
"path": {
"field": "layout_path"
}
},
"update": {
"fill": {
"field": "zipped.v"
}
},
"hover": {
"fill": {
"value": "#989898"
}
}
}
}
]
}<includeonly>}}</includeonly><noinclude>|lang=javascript}}'''&lt;/graph>'''</noinclude>
Anonymous user