Skip to main content
100%

Activity-6 Q1.2

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

This bar chart displays the population of 20 countries in 2010, sourced from a CSV file loaded via `d3.csv`. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles represent each country, with `d3.format` providing tick labels that abbreviate large numbers. The chart includes styled axes with blue grid lines, and hover tooltips reveal precise values via native SVG `<title>` elements.

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