Карта мира: различия между версиями
Перейти к навигации
Перейти к поиску
Метка: визуальный редактор отключён |
Метка: визуальный редактор отключён |
||
Строка 1: | Строка 1: | ||
+ | <graph> |
||
− | {{Graph:Lines |
||
+ | { |
||
− | | debug=1 |
||
+ | "version": 2, |
||
− | | table=bls.gov/US Women's weekly earnings as a percent of men's by age, annual averages.tab |
||
+ | "width": 1, |
||
− | | type=year | xField=year |
||
+ | "height": 1, |
||
− | | series="age_16_24", "age_25_34", "age_35_44", "age_45_54" |
||
+ | "data": [ |
||
− | | yZero=false | yMin=50 | yMax=100 |
||
+ | { |
||
⚫ | |||
+ | "name": "highlights", |
||
+ | "values": [{"id":"US","v":"blue"},{"id":"AU","v":"purple"},{"id":"CN","v":"red"},{"id":"BR","v":"pink"},{"id":"DZ","v":"green"}] |
||
+ | }, |
||
+ | { |
||
+ | "name": "countries", |
||
+ | "url": "wikiraw:///Extension:Graph/Demo/RawData:WorldMap-iso2-json", |
||
+ | "format": {"type": "topojson", "feature": "countries"}, |
||
+ | "transform": [ |
||
+ | { |
||
+ | "type": "geopath", |
||
+ | "value": "data", |
||
+ | "scale": 80, |
||
+ | "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" |
||
+ | } |
||
+ | } |
||
+ | } |
||
+ | } |
||
+ | ] |
||
⚫ | |||
+ | </graph> |