Question1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart depicting the populations of twenty countries in 2010. Built with React and SVG, it uses D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. The `csv` function loads data from a GitHub-hosted file, and custom `AxisBottom` and `AxisLeft` components render the axes with formatted tick labels. Each bar is a `rect` generated by the `Marks` component, with a `<title>` element for tooltip values.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed