Skip to main content
100%

ICE-5: Loading and Parsing CSV Data with D3.js

✓ Published1🌍 Public
PPriyanka11128
Last edited Feb 28, 2022
Created on Feb 28, 2022

This example demonstrates loading and parsing CSV data with D3.js, displaying the result as a text summary in the browser. It shows the process of fetching a remote CSV file about COVID cases, calculating its size in kilobytes, counting the rows and columns, and outputting this information to a preformatted HTML element. The code uses D3's `d3.csv` function to fetch and parse the data asynchronously, and `d3.csvFormat` returns the parsed dataset as text to measure its length. A separate SVG image is also embedded in the page, and the title emphasizes the educational goal of learning data loading with D3.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes