Loading and parsing CSV
✓ Published0🌍 Public
This example demonstrates how to load and parse a CSV file using D3.js, displaying the resulting dataset’s size in kilobytes, row count, and column count as large text on a plain HTML page. The code fetches a remote CSV file from a GitHub gist via `d3.csv`, then formats the parsed data with `d3.csvFormat` to calculate its size. It also reads the `data.length` and `data.columns.length` properties to report the number of rows and columns, updating the page’s `<pre>` element with `textContent`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed