Skip to main content
100%

making a barchart

✓ Published0🌍 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
MIT Licensed

Similar vizzes