Skip to main content
100%

Activity 6_task 1

✓ Published2🌍 Public
SSuneelKalva@my.unt.edu
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This example shows a horizontal bar chart displaying the populations of 20 countries in 2020, with bars colored green and ordered by country name on the y-axis. Using the React framework with D3 v5, the code loads CSV data via `d3.csv`, scales values with `scaleBand` and `scaleLinear`, and renders SVG elements through components like `AxisBottom`, `AxisLeft`, and `Marks`. The x-axis labels use `d3.format` to abbreviate large numbers, converting "G" to "B" for billions, and the dataset is fetched from a GitHub repository.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes