🌍 Public
Viewing a saved revision (read-only)
aa87330d4dd5490caa59a057080d5990
Making a bar chart
This example shows a horizontal bar chart of population estimates for the ten most populous countries, scaled in thousands. The visualization uses D3 v7 with an SVG renderer, loading data from a CSV file and encoding population with a linear scale and country names with a band scale. The code imports specific D3 modules like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct axes, while bars are appended as SVG `rect` elements with steelblue fill.
AI-generated description