Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

376efaa01f7a4d9f9c1e3942fde6e219

Making a Bar Chart

0 stars0🌍 Public
LLuisEnrique-Naica
Last edited Dec 12, 2020
Created on Dec 11, 2020
Forked from HTML Starter

This bar chart displays population estimates for ten countries, with the United States, India, and China leading in size. Built with D3 v6, the visualization uses `scaleLinear` and `scaleBand` to map population values to bar widths and country names to vertical positions, respectively. The chart is rendered as SVG within an HTML page, with axes created using `axisLeft` and `axisBottom`. Data is loaded from a CSV file and formatted by multiplying population values by 1,000 before rendering.

AI-generated description