Activity_6 Q-1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000. The chart uses an SVG-based React component, with D3 version 5’s `scaleBand` and `scaleLinear` to manage the categorical y-axis and quantitative x-axis. Data is loaded from a remote CSV file, and the bars are rendered as `<rect>` elements that scale with the population values. Tick marks and labels on both axes are generated using custom React components that wrap D3’s scale methods, while CSS styling controls the fill color and font.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed