🌍 Public
Viewing a saved revision (read-only)
e75aab44aa3947c9a9b6e39671ff9e5b
Axes With React & D3
This bar chart visualizes the top 10 countries by 2020 population using data from the UN Population dataset, rendered as SVG via React. The code combines React with D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with `csv` loading the data. Gridlines and tick labels are generated from `xScale.ticks()`, while country names and proportional rectangles are mapped from the data.
AI-generated descriptionUsing React to render data about CSS named colors.