🌍 Public
Viewing a saved revision (read-only)
a079c7e0756d45d483cc272a42da78b4
Making a Bar Chart
This example shows a horizontal bar chart ranking the eight most populous countries, using population data from a CSV file. The chart uses D3 v6’s `scaleLinear` and `scaleBand` to map population values and country names to SVG rectangles. Axis ticks are formatted with `format('.3s')`, and the y-axis labels are cleaned by removing domain lines. The visualization also includes a custom title and an axis label for population, with all styling handled through CSS.
AI-generated description