Skip to main content
100%

Bar Chart v2

✓ Published0🌍 Public
RRajat Dangat
Last edited Mar 26, 2021
Created on Mar 26, 2021
Forked from D3 Starter

A vertical bar chart displays the populations of ten countries in 2020, sourced from a UN population CSV loaded with `d3.csv`. The x-axis labels are rotated 30 degrees to accommodate country names, and the y-axis uses a custom tick formatter that abbreviates billions as "B". Built with React and SVG, the chart uses `d3.scaleBand` for the categorical axis and `d3.scaleLinear` for the continuous population scale, with tooltips generated via SVG `<title>` elements.

AI-generated description

Vertical bar chart.

MIT Licensed

Similar vizzes