Skip to main content
100%

Making a bar chart!

✓ Published0🌍 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
MIT Licensed

Similar vizzes