Skip to main content
100%

Bar chart with axis with ticks

✓ Published1🌍 Public
JJean David
Last edited May 22, 2021
Created on May 22, 2021

This example displays a horizontal bar chart ranking the 15 most populous countries by their projected 2020 population from the United Nations World Population Prospects 2019 dataset. The chart includes a linear x-axis with tick marks and labels generated using `xScale.ticks()`, alongside a categorical y-axis listing country names via `yScale.domain()`. Built with React and D3 v5, the visualization uses `scaleBand` and `scaleLinear` for positioning, rendering SVG rectangles for bars and text elements for axis labels within a margin-defined layout.

AI-generated description
MIT Licensed

Similar vizzes