Activity 6_task1_question2
✓ Published0🌍 Public
This example shows a horizontal bar chart of the populations of 20 countries in 2010, using a linear scale for the population values and a band scale for the country names. The visualization is rendered as an SVG via React, using D3 v5’s `scaleBand`, `scaleLinear`, and `max` to compute the layout, with axes drawn by custom `AxisBottom` and `AxisLeft` components. Bar marks are generated by the `Marks` component, each with a tooltip displaying the formatted population value. The data is loaded asynchronously from a CSV using D3’s `csv` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed