🌍 Public
Viewing a saved revision (read-only)
c7c4a2b46b1a46d2b04a14a765217eb9
Sylised Bar Chart
This example shows a horizontal bar chart of the top ten countries by population in 2020, using rectangles scaled along the x-axis. The chart is built with React and D3 v5, rendering to SVG. The scales are created with `scaleBand` and `scaleLinear`, axes are drawn using custom components, and tooltips are provided via SVG `<title>` elements. Data is fetched from a CSV file using D3’s `csv` function, with population values formatted using D3’s `format` to display in billions.
AI-generated descriptionSmiley face implementation with React & D3.