Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

f25fc8b66f4b44c3b791d2e597c7e544

Making a Bar Chart

0 stars1🌍 Public
AArvind Lairenjam
Last edited Apr 4, 2019
Created on Apr 3, 2019

This bar chart displays the 2011 census population estimates for ten Indian cities, including Mumbai, Bengaluru, and Mysuru, using a horizontal layout. The visualization relies on D3 v5, with a linear scale for population values and a band scale for city names, alongside `d3.axisBottom` and `d3.axisLeft` to render tick marks. Bars are drawn as SVG rectangles, filled in steelblue, with population labels formatted in abbreviated units via `d3.format`. The data is loaded asynchronously from a CSV file using `d3.csv`, which then triggers the rendering function.

AI-generated description

This bar chart shows population of 10 randomly pickedup cities of India. The data comes from the year 2011 cencus estimate in Wikipedia : List of cities in India by population.