Skip to content

type conversion through d3.json #3498

Answered by gordonwoodhull
Steffni asked this question in Q&A
Discussion options

You must be logged in to vote

AFAIK d3.json doesn't provide type conversions because json is already typed; it's a thin veneer over the standard browser Fetch which has json parsing built in.

CSV parsing needs type conversion because natively CSV is just strings.

Instead, assuming your data is an array, you could just run res.map(type) after receiving the json data...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
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