Skip to main content
100%

Task8-Question (a)

✓ Published0🌍 Public
Ppranayrajana.97@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This interactive bar chart shows the population of the top 10 countries in the year 2000. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a remote CSV using D3's `csv` function, with each bar rendered as an SVG `<rect>`. Axis ticks are generated via D3's scale `ticks()` method, and the x-axis labels are formatted with `format('.2s')` to convert values to billions. A hover tooltip displays the precise population value.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes