Skip to main content
100%

Question1.1

✓ Published1🌍 Public
Aasimcyb@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from activity_6 fork

A horizontal bar chart displays the population of ten countries in the year 2000, using a linear scale for the x-axis and a band scale for the y-axis. The React app loads CSV data via `d3.csv`, transforms the population values by multiplying by 1000, and renders SVG rectangles with `d3.scaleLinear`, `d3.scaleBand`, and `d3.max`. Axis components use `d3.scaleBand.ticks` and `d3.format` to show abbreviated tick labels, while a tooltip is provided through 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