🌍 Public
Viewing a saved revision (read-only)
17c078b38c4a409d9252c9122abe9d66
Making a Bar Chart
This example shows a horizontal bar chart of population estimates for ten countries, sorted from most to least populous, with countries labeled on the y-axis and population counts scaled along the x-axis. The visualization uses D3 v6 with an SVG rendering, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` to generate ticks. Data is loaded from a CSV file, values are multiplied by 1000 during preprocessing, and bars are appended as rectangles with a steelblue fill.
AI-generated description