Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart!

Public visualization

Making a bar chart!

0 stars0🌍 Public
RRAMANDEEP SINGH
Last edited Nov 15, 2020
Created on Nov 15, 2020

This example shows a simple bar chart of country populations from a CSV file; the length of each bar encodes the population number. The chart is rendered as SVG, with each bar’s width mapped from the data’s maximum value using D3’s `scaleLinear` and `max` functions. The code reads data with `csv` and appends `rect` elements to the SVG canvas.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed