Line Chart with Multiple Lines
✓ Published0🌍 Public
This line chart displays hourly collision counts across New York City boroughs, with each borough represented by a distinct colored line. The visualization uses D3 v5 with SVG rendering, employing `d3.csv` for data loading, `d3.scaleTime` and `d3.scaleLinear` for axes, and `d3.line` with `curveBasis` for smooth paths. A custom color legend function places ordinal color scales alongside the chart, while data from Counts.csv is nested by borough using `d3.nest`.
AI-generated descriptionThis line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.
MIT Licensed