Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Bar chart

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed