Created
October 22, 2023 06:55
-
-
Save yssymmt/1f444090dfd95dd9065d5b1a74efd60a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"width": 600, | |
"height": 600, | |
"layer": [ | |
{ | |
"data": { | |
"url": "jp_pref.l.topojson", | |
"format": { | |
"type": "topojson", | |
"feature": "pref" | |
} | |
}, | |
"mark": { | |
"type": "geoshape", | |
"stroke": "white", | |
"strokeWidth": 0.5 | |
}, | |
"encoding": { | |
"color": { | |
"value": "#e0e0e0" | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geob_03geotest_oth.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"mark": {"type": "line", "opacity": 0.5}, | |
"encoding": { | |
"longitude": { | |
"field": "経度", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "緯度", | |
"type": "quantitative" | |
}, | |
"order": { | |
"field": "番号" | |
}, | |
"detail": { | |
"field": "オブジェクト名", | |
"type": "nominal" | |
}, | |
"color": { | |
"field": "区分", | |
"type": "nominal", | |
"scale": { "range": ["#000000","#c71585","#66cdaa"] } | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geob_03geotest_dot.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"mark": {"type": "circle", "opacity": 0.5}, | |
"encoding": { | |
"longitude": { | |
"field": "経度", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "緯度", | |
"type": "quantitative" | |
}, | |
"size": {"value": 100}, | |
"detail": { | |
"field": "オブジェクト名", | |
"type": "nominal"}, | |
"color": { | |
"field": "区分", | |
"type": "nominal", | |
"scale": { "range": ["#000000","#c71585","#66cdaa"] } | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geob_03geotest_label.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"mark": { | |
"type": "text", | |
"opacity": 1, | |
"size": 12, | |
"color": "#202020" | |
}, | |
"encoding": { | |
"longitude": { | |
"field": "経度", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "緯度", | |
"type": "quantitative" | |
}, | |
"text": { | |
"field": "オブジェクト名", | |
"type": "nominal" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment