Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

5ab3a696f7ef40e39d6cb6603ba25172

Making a Bar Chart

0 stars0🌍 Public
CChiuyc
Last edited Oct 5, 2020
Created on Oct 5, 2020

This example visualizes population figures for the ten most populous countries using a basic bar chart layout in SVG. It loads data from a CSV file containing country names and population numbers, converting the population strings to numeric values. The visualization uses D3 v5 with `d3.select` to manage the SVG element and `d3.csv` for data loading. A `scaleLinear` is defined but not yet configured with domains or ranges, while the data join appends rectangles of fixed width and height to the chart.

AI-generated description