Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a bar chart

Public visualization

Viewing a saved revision (read-only)

deb321dcca9949c087576db641241747

Make a bar chart

0 stars0🌍 Public
Cczhang746
Last edited Feb 18, 2023
Created on Feb 18, 2023

This example shows a blank SVG canvas with the title “Make a bar chart” and loads a CSV dataset containing population figures for ten countries, converting each value from millions to raw thousands. The code uses D3 v5’s `select` and `csv` methods to fetch and parse `data.csv`, logging the transformed array to the console. Although the data is prepared and the SVG element is sized at 960 by 500 pixels, the visualization itself is not yet rendered, leaving only the empty chart area.

AI-generated description