Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a barChart

Public visualization

Making a barChart

0 stars1🌍 Public
LLozakaka
Last edited Oct 10, 2022
Created on Oct 10, 2022
Forked from HTML Starter

This bar chart displays population figures per year, with horizontal bars extending from a linear scale up to the maximum value. The code loads data from a CSV file and renders it as SVG, using D3 v5’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the axes. The chart is built declaratively with `select`, `csv`, and `max`, while styling is applied via CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed