Skip to main content
100%

Styled Bar Chart

✓ Published2🌍 Public
MMark Lam
Last edited Jan 25, 2022
Created on Jul 20, 2021

This example displays a horizontal bar chart ranking the populations of the ten most populous countries, with formatted tick labels and axis styling. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis, `scaleLinear` for the numerical x-axis, and SVG rectangles for the bars. Data is loaded from a CSV file of UN population estimates for 2020, and the chart includes custom tick formatting that converts values to billions with the ‘B’ suffix.

AI-generated description

Axes with 3D

MIT Licensed

Similar vizzes