Created
October 22, 2023 07:09
-
-
Save yssymmt/cf36d4cc0cf981f0b8c27e1b97709500 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": "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": "nominal", | |
"scale": { "range": ["#c71585","#66cdaa","#dc143c"] } | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment