Skip to main content
100%

DV

✓ Published0🌍 Public
LLayaMyadam@my.unt.edu
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from Hello VizHub

This example demonstrates a static bar chart comparing country populations in 2023, loading data via `d3.csv` from a GitHub raw link and rendering it as SVG elements. The chart uses `d3.scaleBand` for the x-axis (countries) and `d3.scaleLinear` for the y-axis (population), with bars colored steelblue. Axes are generated using `d3.axisBottom` and `d3.axisLeft`, and the x-axis labels are rotated for readability. The visualization is built entirely with D3 v6, including margins, scales, and SVG selection/update patterns.

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