Skip to main content
100%

Act6_Q1.1

✓ Published0🌍 Public
Ggalijawaharnath@gmail.com
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This horizontal bar chart displays population data for ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. The visualization uses React components with D3 v5 scaleBand and scaleLinear to position bars, while custom AxisBottom and AxisLeft components render the tick marks. Data is loaded from a remote CSV file using D3’s csv method, with population values formatted using the format function to abbreviate large numbers. The SVG rendering includes tooltips via native title elements that show the exact population for each bar.

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