Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_population_question1

Public visualization

Viewing a saved revision (read-only)

390cd907f00040a68ecaead5f56f703d

Fork of Activity6_population_question1

0 stars3🌍 Public
Cchandrikachowdary867@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024

This example shows a bar chart of the top 10 most populous countries in the year 2000, with bars sorted in descending order and population values on a linear scale. The data is fetched from a GitHub-hosted CSV file, parsed with `d3.csvParse`, and rendered as an SVG using D3 scales (`scaleBand`, `scaleLinear`) and axes (`axisBottom`, `axisLeft`). Bars are colored steelblue and change to orange on hover, with rotating country labels for readability.

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.