Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a bar chart!

Public visualization

Let's make a bar chart!

0 stars0🌍 Public
Sswathijay
Last edited Sep 14, 2019
Created on Sep 14, 2019

This example shows the cumulative number of events by year from 1949 to 2019, using a bar chart that grows in height as the running total increases. The visualization loads CSV data and renders it as SVG rectangles, using D3 v5 scales (`d3.scaleLinear`, `d3.scaleBand`) and axes (`d3.axisBottom`, `d3.axisLeft`). The bars are colored steelblue and positioned via the scale’s range band, with the chart drawn inside an `<svg>` element using a margin convention.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed