Skip to main content
100%

activity6-Task1

✓ Published0🌍 Public
Nnarasimhacharyulu010@gmail.com
Last edited Apr 1, 2024
Created on Apr 1, 2024
Forked from Hello VizHub

This bar chart displays the population of 30 countries in the year 2020, ranked along the y-axis and scaled proportionally to population on the x-axis. It loads CSV data from a GitHub raw URL using the `csv` function from d3.v5, then renders the visualization as SVG elements within a React component. The chart uses `scaleBand` for the categorical country axis, `scaleLinear` for the continuous population axis, and includes native SVG `<title>` tooltips on each rect mark. Both axes are custom-built components that generate tick lines and text labels.

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