Карта мира: различия между версиями

Перейти к навигации Перейти к поиску
нет описания правки
 
{{GraphChart|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10, 12, 6, 14, 2, 10, 7, 9}}
 
<graph>
{
"version": 2,
"width": 1100,
"height": 1100,
"data": [
{
"name": "highlightstable",
"values": [12,23,47,6,52,19],
"values": [{"id":"US","v":"blue"},{"id":"AU","v":"purple"},{"id":"CN","v":"red"},{"id":"BR","v":"pink"},{"id":"DZ","v":"green"}]
"formattransform": [{"type": "topojsonpie", "featurefield": "countriesdata"},]
],}
],
"marksscales": [
{
"typename": "pathr",
"type": "sqrt",
"domain": {"data": "table","field": "data"},
"range": [20,100]
}
],
"marks": [
{
"type": "arc",
"from": {"data": "table"},
"properties": {
"enter": {
"x": {"field": {"group": "width"},"mult": 0.5},
"y": {"field": {"group": "height"},"mult": 0.5},
"startAngle": {"field": "layout_start"},
"endAngle": {"field": "layout_end"},
"innerRadius": {"value": 20},
"outerRadius": {"scale": "r","field": "data"},
"stroke": {"value": "#989898fff"}
},
"update": {"fill": {"value": "#ccc"} },
{
"hover": {"fill": {"namevalue": "countriespink",} }
}
"url": "wikiraw:///Extension:Graph/Demo/RawData:WorldMap-iso2-json",
},
"format": {"type": "topojson", "feature": "countries"},
{
"transform": [
"type": {"text",
"from": {"typedata": "geopathtable"},
"valueproperties": "data",{
"scaleenter": 80,{
"x": {"field": {"translategroup":[0 "width"},"mult": 0].5},
"y": {"field": {"projectiongroup": "equirectangularheight"},"mult": 0.5},
"radius": {"scale": "r","field": "data","offset": 8},
"theta": {"field": {"layout_mid"},
"fill": {"typevalue": "lookup#000"},
"align": {"keysvalue": [ "idcenter" ]},
"baseline": {"onvalue": "highlightsmiddle"},
"text": {"onKeyfield": "iddata",}
"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"
}
}
}
}
] }
}
]
}
</graph>

Навигация