Skip to main content
100%

Activity 6_Q 1.2

✓ Published0🌍 Public
MMannava Priyanka Chowdary
Last edited Nov 15, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This horizontal bar chart displays the populations of the 20 most populous countries in the year 2000, sorted in descending order. Built with D3 v5, it uses `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. The chart labels the axes "Population-2010" and includes a title, with tick marks styled via CSS. Data is loaded from a CSV file using `csv()` and formatted with `format('.3s')` to abbreviate large numbers.

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