Skip to main content
100%

Activity 6_Task_12

✓ Published0🌍 Public
TThai Ha Dang
Last edited Oct 19, 2024
Created on Oct 19, 2024

This example shows a horizontal bar chart of 2010 population figures for 30 countries, with a green fill on each bar and a tooltip displaying the abbreviated population value. The visualization loads a CSV from GitHub via `d3.csv`, maps the data through `useData`, and renders SVG bars using React components. Scales are built with `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the population axis, while tick formatting uses `d3.format`.

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