Skip to content

Geo Plot - TypeError: Cannot read properties of undefined (reading 'table') #270

Answered by jheer
enlore asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm... maybe try replacing this

const nation = topojson.feature(us, us.objects.nation)

with this

const nation = topojson.feature(us, us.objects.nation).features;

vgplot doesn't currently recognize GeoJSON objects as input data, but should properly handle an Array containing individual GeoJSON features.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@enlore
Comment options

@enlore
Comment options

@enlore
Comment options

@jheer
Comment options

Answer selected by enlore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants