Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_Question2

Public visualization

Assignment2_Question2

0 stars0🌍 Public
HHarsha vardhan reddy Yarmareddy
Last edited Apr 13, 2024
Created on Apr 12, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed