Viewing a saved revision (read-only)
5254618e9cd34a0284c378f122962198
ICE-5: Loading and Parsing CSV Data with D3.js
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.