Skip to main content
100%

ICE-7 Pie Chart

✓ Published0🌍 Public
SSreejaBellamkonda
Last edited Mar 27, 2022
Created on Mar 27, 2022

This pie chart visualizes the population of different countries using data loaded from a CSV file. The code renders SVG arcs with D3.js v3, using the `d3.layout.pie` and `d3.svg.arc` APIs to compute and draw each slice, with colors assigned via `d3.scale.category20`. A legend on the right lists each country name and its corresponding population value, while labels are placed at arc centroids using `arc.centroid`. The chart emphasizes the distribution of population across nations.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes