Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of MIAGE base

Public visualization

Viewing a saved revision (read-only)

c45c7f4f58774a4292370fb04e624e28

Fork of MIAGE base

0 stars0🌍 Public
Aabdeldev504
Last edited Sep 19, 2022
Created on Sep 19, 2022
Forked from MIAGE base

This example loads a CSV file of global population data, showing a bar chart where each country is represented by a static rectangle of fixed width and height. It imports D3 v5 functions like `select` and `csv` and renders shapes in an SVG. The code builds a single group element with rectangles, while the console logs each country’s name and 2022 population, demonstrating basic data import and SVG rendering with D3.

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.