Fork of Pie Chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed