Fork of Fork of Activity_6_TASK1_DV_Q1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for ten countries in the year 2000, with each bar’s length proportional to its population value. The visualization uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for positioning and scaling, and D3’s `csv` loader to fetch data from a GitHub-hosted CSV file. Bar rectangles are generated via a custom `Marks` component, while `AxisBottom` and `AxisLeft` use D3’s tick generation to draw axes. Population values are formatted with D3’s `format` function, converting numbers to abbreviated strings like “B” for billions.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed