Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Mmaheshchowdaryponnaganti@my.unt.edu
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This visualization displays the populations of 20 countries in 2010 as a horizontal bar chart, using React and D3 v5 to render the SVG elements. It loads data from a CSV file via a custom `useData` hook with `d3.csv`, then uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The bars are drawn as SVG `<rect>` elements with a native `<title>` tooltip showing formatted population values, and tick marks are generated using `xScale.ticks()` with custom formatting.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes