Skip to main content
100%

Activity_6_Question-1.1

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

This bar chart displays the population of ten countries in the year 2000, sorted by country name on the y-axis and population on the x-axis. It uses a React component structure with D3 v5 to load CSV data from GitHub, scale the values with `scaleBand` and `scaleLinear`, and render SVG rectangles via the `Marks` component. Axis components generate tick lines and labels, with population values formatted using D3’s `format` function to abbreviate large numbers. The chart includes a title and tooltips showing exact population on hover.

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