Skip to main content
100%

Fork of Activity 6_task 1

✓ Published0🌍 Public
SSuneelKalva@my.unt.edu
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Activity 6_task 1

This example shows a horizontal bar chart ranking the populations of 30 countries in 2020, using a green fill for each bar that encodes the population magnitude. Data is loaded from a CSV file via d3.csv, then processed and rendered as SVG rectangles. The chart uses d3.scaleBand for the categorical country axis, d3.scaleLinear for the population axis, and d3.format for tick labels that abbreviate large numbers (e.g., "1.2B"). Tooltips display the formatted population when hovering over a bar. The visualization is built with React and the d3.v5 library.

AI-generated description
MIT Licensed

Similar vizzes