🌍 Public
Viewing a saved revision (read-only)
ca17a0e8d38040878131075d43c0c87d
Making a Bar Chart
This example shows a horizontal bar chart ranking the populations of the top 10 most populous countries, with a linear scale for population values and a band scale for country names. The visualization uses d3.csv to load population data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom with custom tick formatting for labels. The chart renders to SVG with margin-based layout, includes gridlines from the x-axis, and applies a custom title and axis labels.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.