🌍 Public
Viewing a saved revision (read-only)
dbff37c278a6421084f49a36a8d8f20a
Untitled
This example shows a horizontal bar chart of country populations, with each bar’s length proportional to population size and bars stacked vertically by country name. The visualization uses D3.js’s `csv` loader to parse `data.csv`, then applies `scaleLinear` for the x-axis and `scaleBand` for the y-axis to position rectangles appended to an SVG. The code selects the SVG element, sets bar heights via `yScale.bandwidth()`, and renders the chart in React with a minimal HTML page.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.