activity 6_Task 1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 30 countries in 2020, with country names on the y-axis and population on the x-axis. The visualization uses React to render SVG elements, with D3 v5 providing the `scaleBand`, `scaleLinear`, `max`, and `format` functions for scaling axes and formatting tick labels. Data is loaded from a CSV file using D3's `csv` function and parsed into numeric population values. Blue tick lines, gray text, and green bars style the chart, with hover tooltips showing formatted population values.
AI-generated descriptionA demonstration of how to start using D3 version 6.
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ia_DwVMXwgk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>.MIT Licensed