Skip to main content
100%

activity6_task1_question1

✓ Published0🌍 Public
JJaswanthkota@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024

This example uses a horizontal bar chart to display the top 10 countries by population in the year 2000. The chart, built with React and rendered as SVG, uses D3 v5 utilities like `scaleBand` and `scaleLinear` to map country names and population values to screen coordinates. Each bar’s length corresponds to the population value, with a tooltip showing the formatted number. Data is loaded from a remote CSV file via D3’s `csv` function, and the x-axis labels are customized using D3’s `format` to abbreviate large numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes