Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Aadamriley29
Last edited Jan 31, 2020
Created on Jan 28, 2020
Forked from HTML Starter

This example shows a bar chart where each bar represents the cumulative running total of data points per year, with the height of each bar fixed at 300 pixels. The visualization uses D3.js, specifically the `select`, `csv`, and `data` methods to load the `data.csv` file and append rectangles to an SVG. The code binds the parsed numeric `running_total` values to `rect` elements but does not encode the values in the bar sizes, leaving all bars equal in height.

AI-generated description
MIT Licensed

Similar vizzes