Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task8_q1.1

Public visualization

task8_q1.1

0 stars0🌍 Public
Mmanisahiths54321@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example displays a bar chart of the top ten most populous countries in the year 2000, sorting the dataset to highlight the largest populations. The visualization is rendered as an SVG using D3.js v7, with bars colored in steel blue that turn orange on hover. The code loads population data via `d3.csv` from a GitHub Gist, filters for the year 2000, and uses `d3.scaleBand` and `d3.scaleLinear` to map countries and population values. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, including rotated country labels and a rotated y-axis title.

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.

Comments

Sign in to join the discussion.

MIT Licensed