Created
August 5, 2023 14:42
-
-
Save mandel59/75c2bbf70a2c90c60cdcd1f2e41fd9ab to your computer and use it in GitHub Desktop.
Erq topojson example 元データ https://geoshape.ex.nii.ac.jp/ka/topojson/2020/12/r2ka12207.topojson 元データのライセンス https://www.e-stat.go.jp/terms-of-use
This file contains hidden or 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
-- erq <matsudo-population-density.erq > matsudo-population-density.svg | |
topojson_feature(readfile('r2ka12207.topojson'), 'town') | |
{*, unpack properties {KEY_CODE, AREA, JINKO}} | |
{*, population_density: JINKO / AREA * 1000000} | |
output vega lite svg with | |
projection mercator, | |
mark geoshape, | |
encoding { | |
color: population_density q {title: "人口密度[人/km²]"} | |
}, | |
options {width: 800, height: 600};; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment