Skip to main content
100%

Task9-Question1

✓ Published0🌍 Public
LLayaMyadam@my.unt.edu
Last edited Apr 28, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

This interactive pie chart displays the percentage distribution of various factors for a selected country, allowing users to compare categorical breakdowns through a dropdown menu. The visualization loads CSV data from a GitHub repository and dynamically updates both the chart and its legend when a new country is chosen. Built with D3 v7, it uses `d3.pie()` to compute arc angles, `d3.arc()` to generate SVG paths, and `d3.scaleOrdinal` with `d3.schemeCategory10` for color mapping, with text labels showing each factor's percentage.

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