Fork of Hello VizHub practice
✓ Published0🌍 Public
This example displays the contents of a CSV file loaded from `data.csv` and renders it as raw JSON inside a `<pre>` element. The visualization uses D3 v5’s `csvParse` to convert the tabular data into an array of objects, and `select` to target the container for updating the DOM. The data file contains healthcare service statistics by age group and gender across multiple years. A separate `viz.js` function manages the data loading lifecycle, updating state from undefined to LOADING before displaying the parsed records.
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