Skip to main content
100%

Making a Bar Chart - NPR data

✓ Published1🌍 Public
NNathan Neelis
Last edited Nov 10, 2020
Created on Nov 9, 2020
Forked from Making a Bar Chart

This example visualizes the parking capacity of Park & Ride facilities in the Randstad region of the Netherlands, using a horizontal bar chart. Each bar represents a city, with bar length scaled to total capacity. The code loads JSON data from a GitHub gist and processes it through custom transformation functions to filter, clean, and aggregate city entries, combining duplicate city names. The chart is rendered as an SVG using D3 v6, with `scaleLinear` and `scaleBand` for positioning, and `axisLeft` and `axisBottom` to create the axes.

AI-generated description
MIT Licensed

Similar vizzes