Activity6 Q1.1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for ten countries from the year 2000, sourced from a CSV file. The chart uses the React framework to render SVG elements, with D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. It employs `AxisBottom` and `AxisLeft` components to draw the axes, while the `Marks` component generates the bars. Hovering over a bar displays the population value via a tooltip, formatted using D3’s `format` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed