Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
SSumanthnaidu213
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from activity 6_Task 1

This example shows a horizontal bar chart of population figures for 30 countries in 2020, with country names on the y-axis and numeric population values on the x-axis. It uses d3.scaleBand and d3.scaleLinear for scales, with d3.format to abbreviate tick labels. Data is loaded via d3.csv from a GitHub-hosted CSV file. React components render SVG rectangles for the bars, and each bar includes a tooltip showing the formatted population value.

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