Parsing CSV data with D3
✓ Published1🌍 Public
Ssurikmeetr
Last edited Apr 13, 2021
Created on Mar 3, 2021
This example demonstrates how to parse CSV data with D3 by loading a remote file containing CSS color names and displaying basic summary statistics. It fetches the dataset from a GitHub gist using `d3.csv`, then computes the formatted CSV size in kilobytes, the number of rows, and the number of columns. The results are rendered as plain text in a `<pre>` element using standard DOM manipulation. The code relies on D3 v6 APIs `d3.csv`, `d3.csvFormat`, and `Math.round` to process and present the data metrics.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed