Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Simple bar char D3

Public visualization

Viewing a saved revision (read-only)

ec51479878b84e04828867c64c574d83

Simple bar char D3

0 stars0🌍 Public
GGabriel Graells Solé
Last edited Nov 4, 2020
Created on Nov 4, 2020
Forked from HTML Starter

This example displays a static bar chart of country populations, with rectangles sized at a fixed width and height rather than scaled to the data values. It uses D3 v3’s `select`, `csv`, and `selection.data` to load `data.csv`, convert the `population` field to numbers via `forEach`, and append rectangles to an SVG. The chart is incomplete, showing no axis or value encoding, and the `styles.css` file is unused. The code also logs messages to the browser console from the HTML and JavaScript files.

AI-generated description