Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Mmeghna.reddy700@gmail.com
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Activity 7

This example shows a horizontal bar chart comparing the populations of twenty countries in 2010, with country names on the y-axis and population values on the x-axis. The visualization uses React with D3 v5, employing `scaleBand` and `scaleLinear` for positioning, with SVG rectangles rendered as marks. Data is loaded from a CSV file using `d3.csv` and formatted with D3's `format` function to display values in billions. Axis components handle tick generation and titles, while hover tooltips reveal precise population figures.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes