Skip to main content
100%

Bar chart

✓ Published0🌍 Public
CCees Klap
Last edited Mar 2, 2021
Created on Mar 1, 2021

This bar chart displays the populations of ten countries in 2020, sourced from UN population data, using horizontal bars where length encodes magnitude and a title tooltip reveals exact values. Built with React and D3 v5, it uses `scaleBand` for categorical y-axis positioning and `scaleLinear` for quantitative x-axis scaling, with axes rendered as SVG elements and a `.replace('G', 'B')` format to show billions.

AI-generated description

making of a bar chart

MIT Licensed

Similar vizzes