Skip to main content
100%

Assignment_2

✓ Published1🌍 Public
Ssowmya167
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Test fork

This example combines a stacked area chart of country population changes across eight census years and a pie chart of fictional product sales. The area chart uses `d3.stack`, `d3.scaleBand`, and `d3.area` to layer annual population data by country, with axis labels and per-layer value text rendered via SVG. The pie chart applies `d3.pie` and `d3.arc` to sales quantities, adding a legend with color-coded rects and labels. Both visualizations load CSV data asynchronously and render using SVG elements.

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