Fork of HTML Starter
✓ Published0🌍 Public
This example shows the top 12 countries by total capital-city population, aggregated from four data parts and displayed as a sorted bar chart. It uses D3 v7 APIs including `d3.tsv` to load tabular data, `d3.rollups` to group rows by country and sum their population values, and `d3.scaleBand`/`d3.scaleLinear` for the axes. SVG rectangles render the bars, with value labels and a title/subtitle, all within an 900×520 viewport. The chart is built with a single blue color (`#3b82f6`) and includes tooltips via appended `title` elements.
AI-generated descriptionMIT Licensed