🌍 Public
Viewing a saved revision (read-only)
d601c0a8ec8b414e87ed58c91f71ca2e
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3.js v6. It fetches a remote CSS named colors dataset and displays the file size, row count, and column count in large text. The code uses `d3.csv` to retrieve and parse the data, then accesses `d3.csvFormat` to calculate the byte size and reads `data.length` and `data.columns.length` for the record metrics. The output is rendered into a `<pre>` element via `document.getElementById`.
AI-generated descriptionA script to load and parse some CSV data.