D3 DataBinding
✓ Published0🌍 Public
663anp3ca
Last edited Sep 20, 2018
Created on Sep 20, 2018
Two small bar charts display municipal census data as horizontal steelblue bars, sorted in descending order by population. Each bar is labeled with its municipality name in small sans-serif text. Built with D3 v5, the example uses `d3.json()` to load data and `d3.scaleLinear()` for the x-axis scale, with `selectAll().data()` and `enter()` appending SVG `<rect>` and `<text>` elements. The data comes from a GitHub-hosted JSON file.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/63anp3ca/'>63anp3ca</a>'s block: <a href='http://bl.ocks.org/63anp3ca/26fc46e1d8ab96a5b8fe484982a5f155'>Prueba GP codigo</a>
mit Licensed