Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_Question1(PieChart)

Public visualization

Viewing a saved revision (read-only)

b0e49cf2e690447ea6754cfc362a1ad6

Assignment2_Question1(PieChart)

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

This pie chart displays the population distribution of major cities, with each slice labeled by its population value in thousands and accompanied by a legend identifying the corresponding state. The chart uses D3.js v5 APIs including `d3.pie` and `d3.arc` to generate the SVG paths, and `d3.scaleOrdinal` for slice coloring. Data is loaded asynchronously via `d3.csv` from a GitHub repository, with values formatted using `d3.format`.

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.