🌍 Public
activity 6_Task 1
This example shows a horizontal bar chart of the 2020 populations of 30 countries, with bars sorted by country name. The chart is built using React and D3 v5, with SVG rendering. It uses `d3.csv` to load data from a remote CSV file, `d3.scaleBand` and `d3.scaleLinear` for the axes, and a custom `Marks` component to render the bars. The bars display population values, with a tooltip showing the formatted number, and the y-axis labels list country names.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.