🌍 Public
Viewing a saved revision (read-only)
5303c71326fa41e48189854ce5b269f9
Customizing Axes
This example shows a horizontal bar chart of country populations, with countries arranged along the y-axis and population counts scaled along the x-axis. The visualization uses d3.csv to load data, d3.scaleLinear and d3.scaleBand to map values to positions, and SVG rectangles for rendering. Custom margins are applied by translating a group element, demonstrating basic axis setup without displaying axes. The chart highlights relative population differences among the ten most populous countries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.