Skip to main content
100%

activity 6_Task 1

✓ Published1🌍 Public
Vvullihanumantharao@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity-6

A horizontal bar chart displays the top 30 countries by 2020 population, with bars extending rightward from a shared baseline. The React application loads CSV data from a GitHub repository using D3’s `csv` function, then renders SVG rectangles positioned by `scaleBand` and `scaleLinear`. Custom React components like `AxisBottom`, `AxisLeft`, and `Marks` handle ticks and bar drawing. Population values are formatted with D3’s `format` function and tooltips appear via SVG `<title>` elements. The chart includes blue axis lines and light green bars, with an "POPULATION-2020" axis label.

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