🌍 Public
Viewing a saved revision (read-only)
ba76d154e41440329067f2fd0e1b521d
Untitled
This example demonstrates a file input interface that lets the user select a local CSV file and parses its contents into an array of objects using D3’s `d3.csvParse`. The parsed data is logged to the browser console for inspection. The code loads D3 v5 from UNPKG, uses a native HTML file input element, and relies on the `FileReader` API to read the file as text. No visualization is drawn; the focus is on data ingestion and basic parsing.
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.