Skip to main content
100%

Activity6Task1

✓ Published1🌍 Public
Gganeshseeram5decem@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example presents a horizontal bar chart of population data for the top 30 countries in 2020, sourced from a GitHub-hosted CSV. The visualization is built with React and rendered as an SVG, using D3 v5's `scaleBand`, `scaleLinear`, and `csv` functions to parse data and position the bars. The chart employs custom axis components for bottom and left ticks, with bar tooltips formatted in millions using D3's `format` function. The code demonstrates modular ES6 imports within a VizHub environment.

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