Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a barchart

Public visualization

Viewing a saved revision (read-only)

927139942e2741718d849caaf8716dcc

making a barchart

0 stars0🌍 Public
CCHAsmAA
Last edited Jul 15, 2022
Created on Jul 15, 2022
Forked from HTML Starter

This example shows a simple bar chart built with D3 v7, displaying population counts for seven countries from a CSV file. The code loads data with `d3.csv`, converts the population strings to numbers, and appends SVG rectangles for each data row. It uses `scaleLinear` to create an x-scale, though the rectangles are given fixed dimensions of 300 by 300 pixels rather than being sized by the data values. The visualization renders entirely in SVG within a 960-by-500 pixel canvas.

AI-generated description