Skip to main content
100%

Activity 6

✓ Published0🌍 Public
Kkesava
Last edited Oct 25, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This horizontal bar chart displays the population of 30 countries in 2020, ordered by country name, with green bars and blue axis lines. The visualization loads a CSV file from a GitHub gist using D3's `csv` function, then renders the data as SVG rectangles via React. D3's `scaleBand` and `scaleLinear` position the bars, while custom `AxisBottom` and `AxisLeft` components generate ticks using D3's `ticks` and `domain` methods. Population values are formatted with D3's `format` function using the SI format to abbreviate large numbers.

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