🌍 Public
piechart
This is an interactive pie chart that visualizes the average values of 11 socioeconomic indicators—such as fertility rate, life expectancy, and literacy rate—for a selected continent. The user selects a continent from a dropdown menu, and the chart updates its arcs accordingly. Built with D3.js v7 and rendered as SVG, it loads CSV data from a GitHub repository, uses `d3.pie` and `d3.arc` to generate the chart, and applies a `d3.scaleOrdinal` color scale. A custom legend shows each indicator’s color.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
Comments
Sign in to join the discussion.