Skip to main content
100%

D3.js Tutorial

✓ Published0🌍 Public
PPLD3508A
Last edited Nov 6, 2022
Created on Sep 24, 2022
Forked from barGraph

This example shows a bar chart of country populations in 2022, using a dataset loaded from a CSV file. The chart sorts countries in descending order of population and displays them with rotated country labels on the x-axis. It uses D3 v5 APIs including `d3.csv`, `d3.select`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft` to render the SVG. The visualization also demonstrates ES6 module imports and hover effects via CSS opacity changes.

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