Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a barchart

Public visualization

Viewing a saved revision (read-only)

d533882b1c4c4b7f9b2cf1cc6a0bd9bb

making a barchart

0 stars0🌍 Public
JJIAHAO LAI
Last edited Dec 14, 2022
Created on Dec 14, 2022

This visualization displays the total number of bike rides for various New York City zones as horizontal bars, ranking locations from JFK Airport to TriBeCa/Civic Center. The data is loaded from a CSV file using the `csv` method from d3, with numeric ride counts parsed for scaling. The chart uses `scaleLinear` for the x-axis width and `scaleBand` for the y-axis categorical zone positions, rendering rectangles as SVG elements. The example relies on d3 v5 APIs including `select`, `max`, and the scale functions.

AI-generated description