Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

practice1

Public visualization

practice1

0 stars1🌍 Public
Hhossaphul
Last edited Mar 9, 2023
Created on Mar 9, 2023
Forked from practice

This bar chart visualizes population data for ten countries, comparing values from China to Mexico using horizontal bars. The chart renders as an SVG graphic, with the countries listed along the y-axis and population counts on the x-axis. Built with D3 v5, it uses `scaleLinear` and `scaleBand` to map the data, while `axisLeft` and `axisBottom` generate the axes. The `csv` function loads the data from `data.csv`, and steelblue rectangles represent each country’s population.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed