Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

8623045967674c52aca614e0a264c47a

Fork of Fork of Reusable D3 Scatter Plot

0 stars0🌍 Public
Ppragnyalipsa96@gmail.com
Last edited Oct 27, 2025
Created on Oct 26, 2025

This reusable scatter plot, built with D3 v7, visualizes traffic accident data by mapping vehicle counts against speed limits and driver experience. The chart uses color-coded symbols to distinguish weather conditions and road types, with legends and axis labels providing context. Implemented using Mike Bostock’s reusable chart pattern, the scatterPlot function exposes chainable setters for x, y, color, and symbol accessors. Two SVG instances render the same dataset with different configurations, while an optional index.js variant cycles the x-axis variable every three seconds to demonstrate the chart's reusability through D3’s selection.call method.

AI-generated description