Activity6_Question 1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the population of ten countries in the year 2000, using a dataset loaded from a CSV file. The chart renders as SVG through React components, with d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis. The code imports d3 functions like csv, scaleBand, scaleLinear, max, and format, and uses d3.ticks for axis generation. Tooltips display each bar’s value on hover via SVG titles.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed