🌍 Public
Viewing a saved revision (read-only)
720a95a0774b431788bc54c92ee9b479
Fork of Activity7question1
This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, with bars encoded by a d3.scaleLinear x-axis and a d3.scaleBand y-axis. The chart uses React components (AxisBottom, AxisLeft, Marks) to render SVG elements, with tick marks styled in blue and bars filled in light green. Data is loaded asynchronously via d3.csv from a remote GitHub dataset, and the population values are formatted using d3.format to display billions with a "B" suffix.
AI-generated descriptionA demonstration of how to start using D3 version 6.