Skip to main content
100%

Assignment_2

✓ Published0🌍 Public
Ssrujaneppalapally@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Test fork

This example presents two synchronized views of historical population data for multiple countries: a stacked area chart and a pie chart. The area chart uses `d3.stack()` and `d3.area()` to show population changes across eight census years, while the pie chart uses `d3.pie()` and `d3.arc()` to display the 2022 population distribution. Both visualizations load data from a CSV file via `d3.csv`, employ `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring, and render as SVG. Numeric population values are displayed directly on the area chart layers.

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