Skip to main content
100%

Task1.2_Activity6

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

This horizontal bar chart displays the populations of the top 20 countries in 2010, with data loaded from a CSV file and rendered as SVG rectangles. The visualization uses React to manage the interface and D3 v5’s `scaleBand`, `scaleLinear`, and `csv` functions to process the data and map values to positions. Axes are created with custom components that generate tick marks and labels, while the bars include tooltips showing formatted population values via D3’s `format`. The chart is styled with a green fill for bars and blue grid lines, and the x-axis is labeled "POPULATION-2010".

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes