Skip to main content
100%

Activity 7

✓ Published1🌍 Public
Rrushithareddyy
Last edited Jun 28, 2023
Created on Jun 28, 2023
Forked from Hello VizHub

This horizontal bar chart displays the population of ten countries in 2010, using a D3.js `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The application, built with React, renders SVG `rect` elements scaled to population values, with D3's `format` function converting large numbers into abbreviated labels like “B” for billions. Data is loaded asynchronously via `d3.csv` from a remote GitHub repository, while custom `AxisBottom` and `AxisLeft` components generate the chart’s tick marks and labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes