Assignment2_Question2
✓ Published0🌍 Public
This area chart visualizes the consumption of five fuel types—solid, liquid, gas, cement production, and gas flaring—over time, with each category overlaid as a semi-transparent colored area. The chart uses D3 v7 to fetch CSV data from a GitHub repository, parse it into numeric values, and render the areas using `d3.area` paths. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, and a separate SVG legend maps colors to labels. The visualization compares consumption magnitudes across categories while the overlapping areas reveal relative trends.
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