🌍 Public
Viewing a saved revision (read-only)
79cb828185c648a08056c44a0aee9329
Fork of Hello HTML
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.