Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7

Public visualization

Viewing a saved revision (read-only)

6ff3374234504c158fad9f4e0ee470bd

Activity 7

0 stars0🌍 Public
MManideeprenikindi
Last edited Jul 23, 2023
Created on Jul 23, 2023
Forked from Hello VizHub

This example shows the populations of the top 20 countries in 2020 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The chart displays green bars and includes axis labels and tick marks. The code uses React with D3 v5 APIs such as `scaleBand`, `scaleLinear`, `max`, and `format` to position and label the bars, and the data is loaded from a CSV file using `csv`. The visualization is rendered as SVG elements within a React component.

AI-generated description

A demonstration of how to start using D3 version 6.