🌍 Public
Viewing a saved revision (read-only)
5b92dca2c6a94318b537584aa02ece89
bar chart with tick
This example displays the top 10 most populous countries as a horizontal bar chart, using React to manage state and render SVG elements. It lacks traditional axes and instead shows tick marks and labels along the bottom, generated via `scaleLinear` and `scaleBand` from d3. The data comes from the United Nations World Population Prospects 2019, loaded with `d3.csv`. Bars are drawn as `<rect>` elements, with a light blue line marking each tick position.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.