Skip to main content
100%

Activity-7 Question-2

✓ Published0🌍 Public
Kkandulasunny17@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024

This example visualizes nuclear energy usage from 2010 to 2020 with an area chart rendered in SVG. The page loads D3 v5 via UNPKG and uses the library’s scale and axis functions to map time-series data, while a filled path generated with d3.area creates the shaded region. The chart is centered on a 930×450 SVG canvas with a fixed heading, and styling is handled through an external CSS file.

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.
MIT Licensed

Similar vizzes