question 1
✓ Published1🌍 Public
A horizontal bar chart displays the population for ten countries from a CSV dataset, sorted by country name. Built with React and D3 v5, the visualization uses `scaleBand` and `scaleLinear` to map categorical labels and numeric values, rendering rectangles as SVG marks with tooltips. Axes are generated with the `AxisBottom` and `AxisLeft` components, while tick labels are formatted using D3’s `format` function to abbreviate values. The chart is rendered entirely as SVG, with a blue tick line and light green bar styling defined in embedded CSS.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed