🌍 Public
Viewing a saved revision (read-only)
7c3e05ab94464c1cb7a8f86da781d7d0
Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV dataset containing Aid Worker Security Incidents. It displays three key statistics about the imported data: the approximate file size in kilobytes, the total number of rows, and the number of columns. The visualization uses D3.js version 5, specifically calling the `d3.csv` function to fetch the dataset from a GitHub gist URL, then `d3.csvFormat` to calculate the data size. The results are rendered into an HTML `<pre>` element, showing the fundamental parsing capabilities of D3 for tabular data.
AI-generated descriptionA bare minimum HTML page.