Fork of Loading Data with React & D3
✓ Published1🌍 Public
This visualization displays the population of UN countries in 2019 as a donut chart, with each slice colored by a CSS named color from the loaded dataset. It uses React hooks (useState, useEffect) to fetch CSV data via d3.csv and manages rendering through React components, while d3.arc and d3.pie compute the geometric paths and angles for the SVG elements. The chart renders a circular layout with inner and outer radii, showing proportional slices for each country's population value.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed