Fork of Hello HTML
✓ Published1🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population, based on UN 2019 data loaded via d3.csv. The React component uses useState and useEffect to fetch and parse the data, then computes scales with d3.scaleBand and d3.scaleLinear. SVG rectangles render the bars with dimensions derived from the scales. The visualization updates reactively when data arrives, showing a clean, minimal chart in a React-D3 hybrid setup.
AI-generated descriptionHalf of the smiley HTML page.
MIT Licensed