Skip to main content
100%

Activity_6_Task_1

✓ Published0🌍 Public
Vvarshithainaganti@gmail.com
Last edited Oct 20, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of population data for 30 countries from 2020, with bars extending from a left-aligned axis and a formatted x-axis showing population counts. It is built with React and D3 v5, loading data from a CSV file using `d3.csv` and rendering SVG elements via React components. The chart uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and custom tick formatting to abbreviate large numbers. Interactive tooltips show exact formatted population values on 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