Skip to main content
100%

Fork of Assignment_2_pie

✓ Published0🌍 Public
Ssowmya167
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Assignment_2

This example compares population trends across countries using both a stacked area chart and a pie chart. The area chart displays population data from 1970 to 2022 across eight time periods, while the pie chart shows the 2022 population distribution. Both visualizations load CSV data via `d3.csv` and use D3’s `d3.stack`, `d3.area`, `d3.pie`, and `d3.arc` APIs. The code demonstrates rendering SVG elements with ordinal color scales and includes axis generation and legend creation.

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