Skip to main content
100%

Activity-6 Task 1

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

This example displays a horizontal bar chart of population data for 30 countries in 2020, sourced from a CSV file hosted on GitHub. It sorts countries along the y-axis using a band scale, while the x-axis uses a linear scale with SI-prefix formatting to abbreviate large numbers. Built with React and rendered as SVG, the chart creates bars using `rect` elements and provides tooltips via a `title` element. D3 functions like `scaleBand`, `scaleLinear`, and `format` handle the scaling and tick formatting.

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