🌍 Public
Viewing a saved revision (read-only)
29d0cf8768904d449dae12f3fc0a5128
ICE-6 DV
Ssowmyanagula@my.unt.edu
Last edited Mar 6, 2022
Created on Mar 6, 2022
This example displays a horizontal bar chart of the top 20 countries by population, sourced from a CSV dataset. The visualization uses React and D3 v5, with SVG rendering. The code implements `d3.scaleBand` for the y-axis categories and `d3.scaleLinear` for the x-axis population values, drawing gridlines and axis ticks manually. The bars are rendered as `rect` elements with widths proportional to each country's population.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.