Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8-Question (a)

Public visualization

Viewing a saved revision (read-only)

7d5cdb6cdf10499abec049a03927a8a0

Task8-Question (a)

0 stars0🌍 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.