Skip to main content
100%

Activity6Task1

✓ Published0🌍 Public
Ssatishvelaga02@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

A horizontal bar chart displays the 2020 population for 30 countries, with bars extending from a shared baseline and country names on the y-axis. The visualization uses D3 v5 scaleBand and scaleLinear for positioning, with data loaded via d3.csv from a GitHub-hosted CSV file. React renders SVG elements, while helper components AxisBottom, AxisLeft, and Marks generate ticks and rectangles. Hovering reveals formatted population values through SVG title tooltips, and the x-axis uses SI-format abbreviations that convert "G" to "B".

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