Skip to main content
100%

Activity_6_Task_1

✓ Published0🌍 Public
HHema Tummapala
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of population estimates for 30 countries in 2020, sourced from a CSV file. The visualization uses React to render SVG elements and D3 v5 scale functions (`scaleBand`, `scaleLinear`, `max`, `format`) to map country names and population values to positions and bar lengths. Axes are drawn by custom components that generate ticks, and hovering over a bar reveals its formatted population value via a native SVG `<title>` element. The chart is styled with a light green fill and a blue axis color scheme.

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