Cities with the Largest Population in US 2020 example
This example visualizes the 200 largest U.S. cities by 2020 population as a bar chart, with each bar representing a state’s total population and colored by individual city. It answers questions about top cities and state-level distributions. Built with Vega-Lite, the code uses `vl.markBar()`, `vl.groupby`, and encodings for x, y, color, and tooltip, processing CSV data from World Population Review via d3.csv. The tooltip is enabled through the vega-tooltip API.