barchart
✓ Published0🌍 Public
VVictorHom
Last edited Jul 23, 2018
Created on Jul 23, 2018
This bar chart displays the population of five countries—China, India, USA, Indonesia, and Brazil—using horizontal bars with a linear y-axis and a band x-axis. The chart is rendered as an SVG via D3 v4, with axes formatted using a custom tick formatter that converts large numbers to abbreviated units like “B” for billion. The code defines scales with `d3.scaleBand` and `d3.scaleLinear`, and draws bars with D3’s data-join pattern, while the axis orientation and tick styling are set through D3’s axis API.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed