Skip to main content
100%

Fork of Activity 7

✓ Published2🌍 Public
Ggoudrohit2000@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Activity 7

This example shows a horizontal bar chart comparing the populations of the top 10 countries in the year 2000. The visualization uses React components with D3 v5 scales, including `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. Data is loaded from a CSV file using `d3.csv`, and the bars are rendered as SVG rectangles with tooltips showing formatted population values. The chart includes custom axis components for the bottom and left sides, with population values formatted using `d3.format`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes