Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Ffleidelav@gmail.com
Last edited Dec 14, 2024
Created on Dec 14, 2024
Forked from Hello HTML

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 description
MIT Licensed

Similar vizzes