Skip to main content
100%

Fork of United Nations Bar Chart with SVG

✓ Published0🌍 Public
Ppreethamkesa
Last edited Mar 4, 2022
Created on Mar 4, 2022

This example shows a horizontal bar chart of the top 10 most populous countries in 2019, with each bar paired with a flag image of its country. The chart loads population data from a CSV file and renders it as SVG using React and D3 v7, employing `d3.csv`, `scaleBand`, and `scaleLinear` for the axes and layout. Flag images are pulled from a remote SVG collection and positioned next to each bar using custom data mapping, with gridlines and tick labels generated from the scales.

AI-generated description
MIT Licensed

Similar vizzes