Fork of ACTIVITY8_TASK1
✓ Published0🌍 Public
This example displays horizontal bars for the populations of 30 countries from a CSV file, using a green fill on a rotated horizontal bar chart. The SVG renders through a React component that imports utilities from D3. The code creates a band scale for the y-axis and a linear scale for the x-axis, with axes drawn from imported modules. Tooltips on each bar show the formatted population value, using D3's `format` function to present numbers in billions.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed