Skip to main content
100%

activity 6_Task 1

✓ Published1🌍 Public
TTarshit Vupperla
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of 2020 population figures for 30 countries, with bars colored light green and a blue axis grid. The chart uses React components to render SVG elements, with D3's `scaleBand` and `scaleLinear` handling the y and x axes respectively. Data loads asynchronously from a GitHub-hosted CSV file via `d3.csv`, and tooltips display formatted population values using `d3.format`. The visualization demonstrates local ES6 module imports and D3 integration within a React framework.

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