Customizando Los Ejes
✓ Published1🌍 Public
A horizontal bar chart displays population figures for African countries, with the title “Paises / Población” and a whimsical x-axis label reading “Corcho negro de cuero.” The chart customizes both axes: the y-axis removes its domain line and tick lines, while the x-axis formats tick labels in compact notation (e.g., “100k”) and draws full-length grid lines. Data is loaded from a CSV file using D3’s `csv` function, with population values multiplied by 1000. The visualization uses D3 v5’s `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` to render an SVG graphic, with custom tick formatting that replaces 'G' with 'B'.
AI-generated descriptionMIT Licensed