Skip to main content
100%

Fork of Activity 6_Task 1 Question 1.1

✓ Published0🌍 Public
Ssumanthpenna0221@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024

This example displays a horizontal bar chart of the top 10 countries by population in 2000, using yellow bars with blue axis ticks on a white background. The React component loads CSV data from a GitHub repository, transforms the population values, and renders SVG elements using D3 v5 scales (scaleBand and scaleLinear) imported directly from the d3 package. The four custom modules—AxisBottom, AxisLeft, Marks, and useData—demonstrate local ES6 module imports, while a native SVG title element provides interactive tooltips for each bar.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes