Assignment
✓ Published0🌍 Public
This example loads a CSV dataset of student alcohol consumption and displays the first ten rows as formatted text. It uses D3’s `csv` method to fetch and parse the data, then appends two `<pre>` elements to the body, one with a label and one with the JSON-stringified rows. The visualization is rendered as SVG within an HTML page that also includes an embedded background image pattern.
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