ICE-5: Loading and Parsing CSV Data with D3.js
✓ Published1🌍 Public
This example demonstrates loading and parsing a remote CSV file using D3.js version 7. The page displays the dataset's size, row count, and column count within a styled HTML element, alongside an embedded SVG image. It uses the `d3.csv` method to fetch and parse the data from a GitHub gist URL, then formats the summary with `d3.csvFormat` and updates the DOM via `document.getElementById`. The code also includes an unused `index.js` that imports from D3 and a local ES6 module, illustrating VizHub's modular workflow.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed