Created
October 22, 2023 07:05
-
-
Save yssymmt/a6b2585650f746ff98279ec3b7a63e93 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" | |
} | |
}, | |
"projection": { | |
"type": "mercator", | |
"scale": 100000, | |
"center": [139.78,35.66] | |
}, | |
"mark": { | |
"type": "geoshape", | |
"stroke": "white", | |
"strokeWidth": 0.5 | |
}, | |
"encoding": { | |
"color": { | |
"value": "#e0e0e0" | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geoc_07tsuki_func.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"projection": { | |
"type": "mercator", | |
"scale": 100000, | |
"center": [139.78,35.66] | |
}, | |
"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": ["#2e8b57","#66cdaa","#b0c4de","#c71585"] } | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment