Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

4ace3339a5b6489fb24d86c157fa7acd

ICE-7 Pie Chart

0 stars0🌍 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.