Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of United Nations Bar Chart with SVG

Public visualization

Viewing a saved revision (read-only)

3b2dcc5b654b4b669edca151cbb167cf

Fork of United Nations Bar Chart with SVG

0 stars0🌍 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