Skip to main content
100%

Fork of Fork of Activity 6

✓ Published0🌍 Public
Ssathvik0311@gmail.com
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Fork of Activity 6

This visualization presents a horizontal bar chart comparing population figures across 30 countries for the year 2020, sourced from a CSV file hosted on GitHub. The React-based application uses D3 v7 modules like `scaleBand`, `scaleLinear`, and `max` to compute scales, while custom SVG components (`AxisBottom`, `AxisLeft`, `Marks`) render the axes and rectangular bars. Population values are formatted using D3's `format` function, with tick labels abbreviated to billions. The chart includes labeled axes and a tooltip on each bar via SVG `<title>` elements.

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