Skip to main content
100%

activity 6_Task 1

✓ Published1🌍 Public
RRakesh Yadav
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This chart displays the population of each country in 2020 as a horizontal bar chart, using a linear scale for the population axis and a band scale for the country axis. The SVG is rendered with React, while D3’s `scaleBand`, `scaleLinear`, `max`, and `format` functions handle the scaling and tick formatting. Country bars are drawn with `<rect>` elements and include a tooltip showing the formatted population value. Data is loaded asynchronously from a CSV file via D3’s `csv` function.

AI-generated description
MIT Licensed

Similar vizzes