Sylised Bar Chart
✓ Published1🌍 Public
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.
MIT Licensed