Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Pp99vijaya@gmail.com
Last edited Oct 25, 2024
Created on Oct 23, 2024

This chart displays the population of 20 countries in the year 2000 as a horizontal bar chart using SVG. The code uses D3 v5’s `scaleBand` and `scaleLinear` to position bars, with React rendering the visualization. Population values are formatted with a custom tick formatter that converts large numbers (e.g., “G” to “B”). The data is loaded from a CSV file via D3’s `csv` function, and each bar includes an HTML `<title>` element for tooltips.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes