Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Ddivyageethanjali
Last edited Mar 29, 2022
Created on Feb 25, 2022
Forked from HTML Starter

This pie chart displays the 15 largest countries by land area, with each slice colored using D3’s `scaleOrdinal` and `schemeCategory10`. The chart loads CSV data from a GitHub gist via `d3.csv`, sorts it by area, and renders slices with `d3.pie` and `d3.arc`. A legend on the right, built with SVG `rect` and `text` elements, lists each country’s name and area in square kilometers. The visualization uses React with D3 v5 and renders entirely through SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes