Top Megacities Population
This horizontal bar chart visualizes the populations of the top 20 megacities worldwide, using bar length to encode millions of residents and color to distinguish continents, with Asia dominating the upper ranks. Each bar is labeled with the city and country, while a subtitle clarifies the metric. The visualization uses D3.js v4 with SVG rendering, employing `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the categorical y-axis, and inline data sourced from Wikipedia via a gist. Hover effects darken bars, and the chart is styled with custom fonts and a clean, margin-based layout.
AI-generated descriptionThis bar chart was inspired by my humanity seminar- Urban Studies. Data from Wikipedia: Megacity.
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/5cb71249dcbfd635c794520aff45b89d'>Extremist Murders in the US</a>
This simple block shows the population of top 20 megacities in the world (in millions) - data from Wikipedia. Megacity is generally defined as a metropolitan area with a total population in excess of ten million people.
I color coded the continent: Red for Asia, Blue for North America, Green for South America, and Yellow for Africa.
From this color code, we can see a majority of the megacities are in Asia.
forked from <a href='http://bl.ocks.org/anqi-lu/'>anqi-lu</a>'s block: <a href='http://bl.ocks.org/anqi-lu/bc73bc205ec19921c89fb2ce76ba703b'>Top Megacities Population</a>