Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart - NPR data

Public visualization

Viewing a saved revision (read-only)

50e26fd536a34f09a372521dec3643a8

Making a Bar Chart - NPR data

0 stars1🌍 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