Created
October 22, 2023 07:09
-
-
Save yssymmt/46eb46054a964065ec876b3dfa5b9716 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": "08.topojson", | |
"format": { | |
"type": "topojson", | |
"feature": "08" | |
} | |
}, | |
"mark": { | |
"type": "geoshape", | |
"stroke": "white", | |
"strokeWidth": 0.5 | |
}, | |
"encoding": { | |
"color": { | |
"value": "#e0e0e0" | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geoe_05ibaraki.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"mark": {"type": "circle", "opacity": 0.5}, | |
"encoding": { | |
"longitude": { | |
"field": "longitude", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "latitude", | |
"type": "quantitative" | |
}, | |
"size": {"field": "値", "type": "quantitative"}, | |
"color": { | |
"field": "階級", | |
"type": "quantitative", | |
"scale": { "range": ["#c71585","#66cdaa"] } | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geoe_05ibaraki.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"mark": { | |
"type": "text", | |
"opacity": 1, | |
"size": 12, | |
"color": "#202020" | |
}, | |
"encoding": { | |
"longitude": { | |
"field": "longitude", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "latitude", | |
"type": "quantitative" | |
}, | |
"text": { | |
"field": "名前", | |
"type": "nominal" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment