Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Ppemmasaniprudhvinadh
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from Pie Chart

This visualization displays life expectancy across continents using a pie chart, with legend labels showing each continent and its corresponding value. The code loads CSV data from a GitHub gist, sorts it, and renders the top 10 entries using D3 v5. The chart uses `d3.pie()` and `d3.arc()` for segment generation, `d3.scaleOrdinal` with `schemeCategory10` for colors, and SVG paths rendered in a React environment. Interactive mouseover events log data to the console, while the legend is positioned separately and styled with CSS classes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes