🌍 Public
Viewing a saved revision (read-only)
c6ab3628d37e43ffb0cee3a2886768a0
RamyaPutta
This example displays the population of ten countries in 2019 using a horizontal bar chart rendered as SVG. It fetches CSV data via `d3.csv` and uses React hooks (`useState`, `useEffect`) to load and manage the dataset. The chart employs `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and custom tick rendering with grid lines and labels. Bars are drawn as green `<rect>` elements, with axes manually created using D3’s scale functions rather than `axisLeft` or `axisBottom`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.