Fork of Question 1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for ten countries in the year 2000, with each bar’s length encoded by population value and country names on the y-axis. It uses React components to render SVG marks and axes, with d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis. The code fetches CSV data via d3.csv, formats tick labels with d3.format, and displays hover tooltips via SVG `<title>` elements. The visualization demonstrates a clean, reusable component-based architecture for building D3 charts within React.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed