Skip to main content
100%

activity 6_Task_1.1

✓ Published1🌍 Public
TThai Ha Dang
Last edited Oct 19, 2024
Created on Oct 16, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the top 10 countries by population in the year 2000, using a green fill for each bar. It loads CSV data from a GitHub-hosted file via `d3.csv` and renders the visualization with React and SVG. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with axes and bars drawn as SVG elements. References to D3 modules like `scaleBand`, `scaleLinear`, `max`, `format`, and the `csv` function are made via ES6 imports, demonstrating local module use.

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