Skip to main content
100%

Activity - 9_Question - 1

✓ Published0🌍 Public
Mmanideepchinna25@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

A pie chart visualizes population distribution across continents from a CSV file, using D3 v5 loaded via UNPKG. The code parses numeric population values, applies an ordinal color scale from `d3.schemeCategory10`, and constructs arcs with `d3.arc()` and `d3.pie()`. An SVG legend maps each color to its continent. The example also demonstrates importing local ES6 modules and styling with external CSS, though the main message is rendered through the chart.

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