Skip to content

Instantly share code, notes, and snippets.

@GerardoFurtado
Last active June 18, 2018 04:41
Show Gist options
  • Save GerardoFurtado/5a43fdcedc214ecdb2eb20ac91af8623 to your computer and use it in GitHub Desktop.
Save GerardoFurtado/5a43fdcedc214ecdb2eb20ac91af8623 to your computer and use it in GitHub Desktop.
fresh block
license: mit
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2. in line 2.
Title: This is parsed file
Job: Proj Doom
Flow,Value
102,2
103,3
104,4
105,5
106,6
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
d3.text("data.csv").then(function(data){
data = d3.csvParse(data.split('\n').slice(3).join('\n'))
console.log(data)
})
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment