Skip to main content
100%

demo-multiple

✓ Published0🌍 Public
DDarienLiang
Last edited Nov 23, 2016
Created on Nov 23, 2016

This visualization shows the number of fatal accidents by hour of day, split into separate lines for different weather conditions. The code loads weather2.csv, nests the data by weather type and hour, then sums the fatal counts for each group using d3.nest and rollup. Multi-line paths are drawn with d3.svg.line, colored dynamically using d3.scale.category10. A time scale on the x-axis and linear y-axis are defined with d3.time.scale and d3.scale.linear, with axes rendered via d3.svg.axis.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes