Making a Bar chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of population data for ten countries, using bars colored steelblue on an SVG canvas. The chart is built with D3 v5, using `d3.csv` to load data, `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes. The data is loaded from a CSV file and multiplied by 1000 to display full population counts.
AI-generated descriptioncountry,population China,1415046 India,1354052 United States,326767 Indonesia,266795 Brazil,210868 Pakistan,200814 Nigeria,195875 Bangladesh,166368 Russia,143965 Mexico,130759
MIT Licensed