Created
February 17, 2021 20:52
-
-
Save wperron/8bfa9a7bb34348ff0d2b48f8cf49f857 to your computer and use it in GitHub Desktop.
Running d3 with Deno and Skypack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fruit | qty | |
---|---|---|
apple | 1 | |
banana | 2 | |
cantaloupe | 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as d3Dsv from "https://cdn.skypack.dev/d3-dsv"; | |
const decoder = new TextDecoder(); | |
const csv = decoder.decode(Deno.readFileSync('data.csv', 'utf-8')); | |
const data = d3Dsv.csvParse(csv); | |
console.log(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment