🌍 Public
Viewing a saved revision (read-only)
26f73b0276e5488b90a662a61e5d3dba
Fork of CSCE 5320 ASSIGNMENT 2 QUESTION 2
An area chart visualizes nuclear energy usage from 2010 to 2020, plotting year against quantity. The chart uses D3 v5 with SVG rendering, employing `scaleTime`, `scaleLinear`, `line` and `area` generators with `curveBasis` for smooth paths. Data is loaded from a CSV file via `d3.csv` and parsed using `d3.timeParse`. Axis labels and tick formatting are customized, and the chart includes gridlines derived from axis ticks.
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.