Skip to main content
100%

P1 - Task 1

✓ Published0🌍 Public
Rrebeccayc
Last edited Jan 17, 2020
Created on Jan 17, 2020

This example shows a horizontal bar chart ranking countries by population, with the United States, China, and India among the largest. The bars are drawn using D3.js version 5, with `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes. Population data is loaded from a CSV file and multiplied by 1000 to reflect actual values. The SVG rendering uses steel-blue bars with a left margin to accommodate country labels.

AI-generated description
MIT Licensed

Similar vizzes