🌍 Public
Viewing a saved revision (read-only)
1ad3f92fe0de48eba745226397165efa
Activity 6 Question 1.2
This example displays a horizontal bar chart of the 2010 population for 20 countries, sorted by country name. The bars use a light green fill, with blue tick marks on the x-axis and gray labels for countries. It is built with React and D3 v5, using `csv` for data loading, `scaleBand` and `scaleLinear` for scales, and SVG `rect` elements for the bars. The chart includes interactive tooltips showing the population value in billions, and axis labels for "POPULATION-2010" and "COUNTRY".
AI-generated description