Activity6_population
✓ Published0🌍 Public
This example shows the 2020 population of various countries as a horizontal bar chart, with the bars ordered by country name and labeled with abbreviated values in billions. It is built with React and D3 v5, using `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `format` with the `.2s` specifier to convert tick labels from gigabytes to billions. The SVG rendering includes custom axis components and a tooltip format applied to bar labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed