bar charts
✓ Published2🌍 Public
This example shows U.S. state populations for 2024 as a horizontal bar chart, sorted in descending order with the District of Columbia moved to the end. The bars encode population values using length, position, and color, with a purple-to-blue gradient fill and hover highlighting. Built with D3 v7, it uses `d3.csv` to load the data, `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisBottom`/`d3.axisLeft` for axes. Gridlines and tooltips via SVG `<title>` elements are also included.
AI-generated descriptionMIT Licensed