Skip to main content
100%

Activity6_question_1.1

✓ Published0🌍 Public
11810vineeth@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This bar chart displays the populations of 30 countries for the year 2020, with countries listed along the vertical axis and horizontal bars representing population values. The visualization uses React with D3 v5, employing d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and d3.format to abbreviate tick labels (e.g., "1.2B"). Data is loaded asynchronously from a GitHub-hosted CSV file using d3.csv, and all marks render as SVG rectangles within a margin-based layout.

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