Skip to main content
100%

Activity6-Question1

✓ Published3🌍 Public
Ssushanthkodipyaka@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6-task1

This example displays a horizontal bar chart ranking ten countries by their 2020 population, using green bars on an SVG canvas. The chart includes labeled axes and a formatted tooltip for each bar. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `csv` to load data from a GitHub-hosted CSV file. Axis components and marks are rendered as separate ES6 modules, with population values converted from strings to 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