Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task 9 Question 1

Public visualization

Viewing a saved revision (read-only)

c93adf028a80449fb71bdec4e5f0868a

task 9 Question 1

0 stars0🌍 Public
Jjaswanthichowdarykalapala@my.unt.edu
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This visualization displays estimated homicide counts for 10 countries in 1979 as a pie chart with a color-coded legend. Each slice is labeled with its value in thousands. The chart uses D3 v5’s `pie`, `arc`, and `scaleOrdinal` APIs to generate the pie geometry and assign colors. Data is fetched from a remote CSV file, numerically parsed, and the top 10 rows are rendered. The SVG output includes clickable legend entries with state names and corresponding values.

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.