Activity 6_Task 1.1
✓ Published1🌍 Public
This example displays a horizontal bar chart of the top ten countries by population in the year 2000, using a light green fill for bars and blue tick lines. It loads data from a CSV file via `d3.csv`, formats the x-axis tick labels with `d3.format`, and renders the visualization as an SVG using React components. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with tooltips showing the population value on each bar.
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