Created
October 22, 2023 07:12
-
-
Save yssymmt/d1913723a1af1042736ca2b5d91a1262 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": 2400, | |
"center": [135.5,35] | |
}, | |
"mark": { | |
"type": "geoshape", | |
"stroke": "white", | |
"strokeWidth": 0.5 | |
}, | |
"encoding": { | |
"color": { | |
"value": "#e0e0e0" | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geoe_03line.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"projection": { | |
"type": "mercator", | |
"scale": 2400, | |
"center": [135.5,35] | |
}, | |
"mark": {"type": "line", "opacity": 0.5}, | |
"encoding": { | |
"longitude": { | |
"field": "longitude", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "latitude", | |
"type": "quantitative" | |
}, | |
"order": { | |
"field": "ord" | |
}, | |
"size": {"field": "セグメント", "type": "quantitative"}, | |
"color": { | |
"field": "セグメント", | |
"type": "nominal", | |
"scale": { "range": ["#c71585","#66cdaa","#dc143c"] } | |
} | |
} | |
}, | |
{ | |
"data": { | |
"url": "geoe_03line.csv", | |
"format": { | |
"type": "csv" | |
} | |
}, | |
"projection": { | |
"type": "mercator", | |
"scale": 2400, | |
"center": [135.5,35] | |
}, | |
"mark": { | |
"type": "text", | |
"opacity": 1, | |
"size": 10, | |
"color": "#202020" | |
}, | |
"encoding": { | |
"longitude": { | |
"field": "longitude", | |
"type": "quantitative" | |
}, | |
"latitude": { | |
"field": "latitude", | |
"type": "quantitative" | |
}, | |
"text": { | |
"field": "landscape", | |
"type": "nominal" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment