🌍 Public
Viewing a saved revision (read-only)
8683872ed8b641a6969ce1a5f42e751e
parsing data
This example demonstrates how to load and display tabular data from a remote CSV file using D3 v5. It fetches data from a GitHub Gist URL, converts the first 10 rows to JSON, and appends them to the page as formatted text. The code uses `d3.csv` for parsing and `d3.csvFormat` to calculate the dataset’s size in kilobytes, while `d3.select` manages DOM updates.
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.