Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

scatter plot

Public visualization

Viewing a saved revision (read-only)

f4e5aa1053e24a9fa36a48f4f254cdbd

scatter plot

0 stars0🌍 Public
JJames Cruz
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This scatter plot displays the relationship between accident dates and the number of casualties, with time on the x-axis and casualty counts on the y-axis. The visualization uses D3.js v7 to render an SVG chart, employing `d3.scaleTime()` and `d3.scaleLinear()` for axis scaling, `d3.line()` to generate the path connecting data points, and `d3.axisBottom()` and `d3.axisLeft()` for labeled axes. Sample accident data is embedded directly in the script, with dates parsed using `d3.timeParse()` for proper time-based positioning.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.