Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6

Public visualization

Activity-6

0 stars0🌍 Public
NNithish Karanam
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Activity 7

This example shows a horizontal bar chart of the 30 most populous countries in 2020. Each bar’s length represents population, with a green fill and tooltips displaying formatted values, while the y-axis lists country names. The visualization is built with React and renders SVG elements. It uses D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and a CSV file fetched from a GitHub repository as the data source. Axis ticks are customized via `d3.format` to abbreviate large numbers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed