I'm trying to add external properties to a topojson file, us-counties.json
(made with us-atlas using make topo/us-counties.json
). I'm working off this example. But my resulting topojson file us-counties-with-population.json
has no properties at all.
My call looks like:
topojson --external-properties data.csv \
--id-property id_county \
--properties population=+percent_population \
-o us-counties-with-population.json \
-- us-counties.json
and my data looks like (head -n5 data.csv
):
id_county,county_name,percent_population
01003,"Baldwin County, Alabama",9.71576144493279
01043,"Cullman County, Alabama",6.734653334216277
01051,"Elmore County, Alabama",7.095232589509385
01069,"Houston County, Alabama",9.857459440234194
I'm using topojson v1.2.2. I think I might be missing something related to how the ids are matched, but I'm not sure what it is.