Created
October 22, 2023 07:09
-
-
Save yssymmt/ea338fd5c17acee9a2c35cf5843c55b9 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", | |
"title": "認めたくないものだな", | |
"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": "geoe_01dot.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_01dot.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