Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barchart

Public visualization

Viewing a saved revision (read-only)

28198b82f7d64acaa3dc6a9e7ebef24d

Making a Barchart

0 stars0🌍 Public
MMaria Kantarjian
Last edited Oct 12, 2020
Created on Oct 12, 2020

This example shows a basic bar chart of country populations, with each of ten countries represented as a rectangle. The chart initially renders all bars at a fixed width and height, though the data is loaded and parsed. The visualization uses D3 v6, specifically the `select` and `csv` methods, to load population data from a CSV file and append SVG `rect` elements. The SVG canvas is set to 960 by 500 pixels, and the chart is rendered entirely with SVG elements in the browser.

AI-generated description