Skip to content

FileAttachment.csv({typed: "auto"})#169

Merged
mbostock merged 10 commits into
mainfrom
mbostock/typed-auto
Jun 16, 2026
Merged

FileAttachment.csv({typed: "auto"})#169
mbostock merged 10 commits into
mainfrom
mbostock/typed-auto

Conversation

@mbostock

@mbostock mbostock commented Jun 14, 2026

Copy link
Copy Markdown
Member

This is adapted from the table cell implementation, but whereas that (for reasons that I cannot recall or imagine) attempted to infer types from arbitrary types, we only need to infer types from strings (CSV or TSV), significantly reducing complexity. We likewise don’t need to distinguish between integers and numbers because the coercion behavior is the same. Also, we don’t need getAllKeys because we will always have column names provided by d3-dsv… although I’m not sure what typed: "auto" should do when parsing rows?

@mbostock mbostock changed the title csv({typed: "auto"}) FileAttachment.csv({typed: "auto"}) Jun 15, 2026
@mbostock mbostock marked this pull request as ready for review June 16, 2026 03:38
@mbostock mbostock requested a review from tophtucker June 16, 2026 17:51
@mbostock mbostock merged commit 0d7b815 into main Jun 16, 2026
1 check passed
@mbostock mbostock deleted the mbostock/typed-auto branch June 16, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant