Fork of Pie Chart
✓ Published0🌍 Public
This example displays the cost of living for the top 10 countries using a pie chart, with each slice colored and accompanied by a legend listing country names and dollar amounts. The visualization is built with D3 v5 in a React framework, rendering SVG elements via `d3.pie`, `d3.arc`, and `d3.scaleOrdinal`, while loading CSV data from a GitHub gist. Data is sorted and sliced to show only the top 10 values, with hover interactions logging slice data to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed