Making a Bar Chart
✓ Published1🌍 Public
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 descriptionThis 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.
MIT Licensed