Skip to main content
100%

JC Task-7 Q1

✓ Published1🌍 Public
JJames Cruz
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from JC Task-1

This interactive bar chart displays the population of 30 countries as horizontal bars, sorted by country name for the year 2020. The visualization uses React with D3.js scales and SVG rendering to produce the chart, with axes formatted using D3’s `format` function to abbreviate large values. Data is loaded from a CSV file via `d3.csv` and processed in a custom `useData` hook, while tooltips show the population value on hover through 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