Skip to main content
100%

activity questi1 answer

✓ Published0🌍 Public
Ttsumanth619@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population estimates for 20 countries in 2020, with each bar labeled by country name and population value formatted in billions. The chart uses React with D3 v5, where `scaleBand` positions countries along the vertical axis and `scaleLinear` maps population counts to bar widths. Data is loaded asynchronously from a CSV file via `d3.csv`, and the bars render as SVG rectangles with tooltips displaying the formatted population values. Custom `AxisBottom` and `AxisLeft` components generate the tick marks and labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes