fresh block
✓ Published0🌍 Public
663anp3ca
Last edited Aug 29, 2018
Created on Aug 29, 2018
This example visualizes municipal-level data from the 2018 Colombian anti-corruption consultation, ranking municipalities by their census population. It uses a horizontal bar chart where each bar’s width maps to the census count via a linear scale, and each bar is labeled with its municipality name. The code loads JSON data from a GitHub repository using d3.json, then applies d3.scaleLinear for the x-axis and d3.descending to sort the data in decreasing order. The visualization relies on D3 v4 to append rect and text elements, with styling set through inline attributes.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed