🌍 Public
Viewing a saved revision (read-only)
2d5404dfc6314f878aa30ea17a491079
Fork of reformat Bar chart (access data)
JJean David
Last edited May 22, 2021
Created on May 22, 2021
Forked from Fork of reformat Bar chart with axis with ticks
This example presents a horizontal bar chart of the top 15 countries by 2020 population, sourced from the United Nations World Population Prospects 2019. A React component renders SVG rectangles for each bar, using D3’s `scaleBand` and `scaleLinear` for the y- and x-axes, respectively. The chart includes labeled axes generated by custom `AxisBottom` and `AxisLeft` components, with tick marks and text positioned via D3’s scale methods.
AI-generated descriptionReformat bar chart (axis)