Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-7 Question-2

Public visualization

Viewing a saved revision (read-only)

eac6363a0c7a48f69d4790504e403214

Activity-7 Question-2

0 stars0🌍 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.