🌍 Public
Viewing a saved revision (read-only)
d657596c07ff4ec381f7f882377354f3
Yaswanth_duddu_ICE7
A reusable scatter plot displays earthquake depth versus magnitude from a CSV file, with each point colored to distinguish whether a tsunami occurred. The visualization highlights the relationship between these seismic measurements while separating the data into two categories for comparison. Built with D3 v7, the code uses `d3.scaleLinear` for both axes and `d3.scaleOrdinal` for the color mapping. It renders points as SVG circles with gridlines, axes, labels, and a legend, filtering out invalid rows before drawing.
AI-generated description