Skip to main content
100%

ACTIVITY6-QUESTION1

✓ Published0🌍 Public
VVarshithMurakonda@my.unt.edu
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the populations of the top 10 countries in the year 2000, using light green bars on an SVG canvas. The visualization loads data from a remote CSV file via the `useData` async function, which parses and sorts the values. It uses D3 v7’s `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `d3.axisBottom` and `d3.axisLeft` for labeled axes, with population formatted in millions. The bars themselves are appended as SVG `<rect>` elements, and the chart is styled using CSS classes from the linked stylesheet.

AI-generated description
MIT Licensed

Similar vizzes