Skip to main content
100%

Activity 7-Task1

✓ Published0🌍 Public
Mmn0658
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Activity 7

This visualization shows the populations of ten countries in 2020 as horizontal bars, scaled linearly along the x-axis and categorized by country along the y-axis. It is implemented in React with D3 v5 utilities, where `d3.scaleBand` positions the bars and `d3.scaleLinear` maps population values to pixel widths. The chart renders as an SVG with custom `AxisBottom` and `AxisLeft` components, and hoverable bars display tick-formatted tooltips via SVG `<title>` elements. The data is loaded asynchronously from a CSV using `d3.csv`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes