🌍 Public
Viewing a saved revision (read-only)
108afd5ebc674cbea6d9bf026a394f8b
Shape with SVG and CSS
This example displays a horizontal bar chart of population data for ten countries, using SVG rectangles scaled by a linear population axis and a band scale for country names. The visualization is built with React and D3 v5, leveraging `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the chart. Data from a CSV file is loaded via `csv`, with populations multiplied by 1000, and styled through CSS properties like `fill: steelblue` on the bars.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.