Activity 6
✓ Published0🌍 Public
This example displays the first 10 rows of a CSV crop dataset as JSON text on a black background, using D3 v5 to load and format the data. The code imports `select`, `csv`, and `csvFormat` from D3, fetches the CSV via a gist URL, and appends a styled `<pre>` element to the body, with the file size computed in kilobytes.
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