Skip to main content
100%

assignment d1

✓ Published0🌍 Public
Aakshayareddy224@gmail.com
Last edited Jul 8, 2024
Created on Jul 7, 2024
Forked from Hello VizHub

This example shows a pie chart displaying the distribution of four organizational units based on their counts. D3.js v6 creates the SVG visualization, using the `d3.pie` generator to compute arc angles and `d3.arc` to render the path shapes. A categorical color scale from `d3.schemeCategory10` fills each slice, with labels positioned via `arc.centroid`. A legend built from rectangles and text conveys the unit names. The remaining files are templates; only `index.html` is executed.

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