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
Kkalokli8
Last edited Apr 1, 2020
Created on Apr 1, 2020

This bar chart displays the populations of ten countries. It creates a simple SVG bar chart from a CSV data file, reading population values and scaling them to the width of the chart. The code uses the d3 library’s `select`, `csv`, `scaleLinear`, and `max` functions to load data, calculate the scale, and render the bars.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed