Create a gist now

Instantly share code, notes, and snippets.

US states topojson joined with some data | test topogram

Trying out topogram with the states_joined.topojson file, and I get null for all the coordinates.

{"features":[{"type":"Feature","id":"Maryland","properties":{"SUMLEV":40,"REGION":3,"DIVISION":5,"STATE":24,"CENSUS2010POP":5773552,"ESTIMATESBASE2010":5773552,"POPESTIMATE2010":5785681,"POPESTIMATE2011":5828289,"NPOPCHG_2010":12129,"NPOPCHG_2011":42608,"BIRTHS2010":18102,"BIRTHS2011":72995,"DEATHS2010":10563,"DEATHS2011":43606,"NATURALINC2010":7539,"NATURALINC2011":29389,"INTERNATIONALMIG2010":4493,"INTERNATIONALMIG2011":16435,"DOMESTICMIG2010":130,"DOMESTICMIG2011":-3124,"NETMIG2010":4623,"NETMIG2011":13311,"RESIDUAL2010":-33,"RESIDUAL2011":-92,"RBIRTH2011":12.5702064,"RDEATH2011":7.509232416,"RNATURALINC2011":5.060973982,"RINTERNATIONALMIG2011":2.830212236,"RDOMESTICMIG2011":-0.537972803,"RNETMIG2011":2.292239432},"geometry":{"coordinates":[[[null,null],[null,null],...

I was using the command

node .\bin\topogram.js --value CENSUS2010POP .\data\states_joined_segmentized.topojson >  states_carto2.topojson

but I should have used

node .\bin\topogram.js --value=properties.CENSUS2010POP .\data\states_joined.topojson >  states_carto2.topojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment