Skip to main content
100%

Activity 6 Question 1.1

✓ Published1🌍 Public
Aabjalshaik02@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the population of ten countries in the year 2000. The visualization uses D3 v5's `scaleBand` and `scaleLinear` to map categorical country names and numeric population values to SVG coordinates, while React renders the chart elements. The chart includes red tick lines on the x-axis, a labeled x-axis for "POPULATION-2000", and blue rectangular marks that display a tooltip with the population value when hovered. Data is loaded from a remote CSV file using D3's `csv` function.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes